diff options
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/document.rs | 4 | ||||
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index fd4bb67370b..a43194783a0 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1342,8 +1342,8 @@ impl Document { pub fn trigger_mozbrowser_event(&self, event: MozBrowserEvent) { if PREFS.is_mozbrowser_enabled() { - if let Some((containing_pipeline_id, subpage_id, _)) = self.window.parent_info() { - let event = ConstellationMsg::MozBrowserEvent(containing_pipeline_id, + if let Some((parent_pipeline_id, subpage_id, _)) = self.window.parent_info() { + let event = ConstellationMsg::MozBrowserEvent(parent_pipeline_id, Some(subpage_id), event); self.window.constellation_chan().send(event).unwrap(); diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 58e0842bef3..051f7588687 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -133,7 +133,7 @@ impl HTMLIFrameElement { let load_info = IFrameLoadInfo { load_data: load_data, - containing_pipeline_id: window.pipeline_id(), + parent_pipeline_id: window.pipeline_id(), new_subpage_id: new_subpage_id, old_subpage_id: old_subpage_id, new_pipeline_id: new_pipeline_id, |