aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-09-27 14:39:44 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 20:59:10 +0200
commitd7c2da450bb7a4e1b393c1260cd13ec658d408f0 (patch)
tree7a4395008bbc5e4df8b6ada7147da4888af767d4 /components/script/script_thread.rs
parent3e5c0c386c425e51067038228561e78d10c80a53 (diff)
downloadservo-d7c2da450bb7a4e1b393c1260cd13ec658d408f0.tar.gz
servo-d7c2da450bb7a4e1b393c1260cd13ec658d408f0.zip
Introduce GlobalScope::live_devtools_updates
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 61ecacda815..0b26647f3e8 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -40,6 +40,7 @@ use dom::browsingcontext::BrowsingContext;
use dom::document::{Document, DocumentProgressHandler, DocumentSource, FocusType, IsHTMLDocument};
use dom::element::Element;
use dom::event::{Event, EventBubbles, EventCancelable};
+use dom::globalscope::GlobalScope;
use dom::htmlanchorelement::HTMLAnchorElement;
use dom::node::{Node, NodeDamage, window_from_node};
use dom::serviceworker::TrustedServiceWorkerAddress;
@@ -1004,8 +1005,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_wants_live_notifications(&global_ref, to_send)
+ devtools::handle_wants_live_notifications(window.upcast(), to_send)
},
DevtoolScriptControlMsg::SetTimelineMarkers(_pipeline_id, marker_types, reply) =>
devtools::handle_set_timeline_markers(&context, marker_types, reply),
@@ -2153,7 +2153,7 @@ impl ScriptThread {
};
let window = context.active_window();
- if window.live_devtools_updates() {
+ if window.upcast::<GlobalScope>().live_devtools_updates() {
let css_error = CSSError {
filename: filename,
line: line,