mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make StructuredCloneData::read take a &GlobalScope
This commit is contained in:
parent
ac5a4adf5f
commit
b3393fba18
5 changed files with 7 additions and 7 deletions
|
@ -1771,7 +1771,7 @@ impl Runnable for PostMessageHandler {
|
|||
let _ac = JSAutoCompartment::new(cx, globalhandle.get());
|
||||
|
||||
rooted!(in(cx) let mut message = UndefinedValue());
|
||||
this.message.read(GlobalRef::Window(&*window), message.handle_mut());
|
||||
this.message.read(window.upcast(), message.handle_mut());
|
||||
|
||||
// Step 11-12.
|
||||
// TODO(#12719): set the other attributes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue