mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
Make devtools::handle_evaluate_js take a &GlobalScope
This commit is contained in:
parent
9c04eb60bd
commit
5d8979237b
4 changed files with 5 additions and 9 deletions
|
@ -985,8 +985,7 @@ impl ScriptThread {
|
|||
Some(browsing_context) => browsing_context.active_window(),
|
||||
None => return warn!("Message sent to closed pipeline {}.", id),
|
||||
};
|
||||
let global_ref = GlobalRef::Window(window.r());
|
||||
devtools::handle_evaluate_js(&global_ref, s, reply)
|
||||
devtools::handle_evaluate_js(window.upcast(), s, reply)
|
||||
},
|
||||
DevtoolScriptControlMsg::GetRootNode(id, reply) =>
|
||||
devtools::handle_get_root_node(&context, id, reply),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue