aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2017-05-18 20:44:31 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2017-06-07 22:53:50 -0500
commit2fd925bac9d008b577c5220f37d4eb0cab73726a (patch)
tree65840614ed2a3bfcb471b362ef7761f6dee50901 /components/script
parentad47d33511c318fe208158bb16deb5086979e0c7 (diff)
downloadservo-2fd925bac9d008b577c5220f37d4eb0cab73726a.tar.gz
servo-2fd925bac9d008b577c5220f37d4eb0cab73726a.zip
Removed root browsing context from constellation.
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/document.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 0e775d018af..1ce504308f7 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -1521,11 +1521,11 @@ impl Document {
pub fn trigger_mozbrowser_event(&self, event: MozBrowserEvent) {
if PREFS.is_mozbrowser_enabled() {
if let Some((parent_pipeline_id, _)) = self.window.parent_info() {
- let global_scope = self.window.upcast::<GlobalScope>();
+ let top_level_browsing_context_id = self.window.window_proxy().top_level_browsing_context_id();
let event = ConstellationMsg::MozBrowserEvent(parent_pipeline_id,
- global_scope.pipeline_id(),
+ top_level_browsing_context_id,
event);
- global_scope.constellation_chan().send(event).unwrap();
+ self.window.upcast::<GlobalScope>().constellation_chan().send(event).unwrap();
}
}
}