Bug 1345966 - [1.0] Remove redundant browserDOMWindow overrides. r=snorp
authorEugen Sawin <esawin@mozilla.com>
Thu, 09 Mar 2017 19:53:52 +0100
changeset 497523 f386196e27a882d9d84b77d8f3b289c2e5396620
parent 497522 9c7d9aa4c2f368d2bedca0c91cc9b9d384005a14
child 497524 e02235c16d63fe367479f0a98fb8868c650b12a9
push id48933
push userbmo:james@hoppipolla.co.uk
push dateMon, 13 Mar 2017 13:53:04 +0000
reviewerssnorp
bugs1345966
milestone55.0a1
Bug 1345966 - [1.0] Remove redundant browserDOMWindow overrides. r=snorp
mobile/android/modules/GeckoViewContent.jsm
mobile/android/modules/GeckoViewProgress.jsm
--- a/mobile/android/modules/GeckoViewContent.jsm
+++ b/mobile/android/modules/GeckoViewContent.jsm
@@ -14,18 +14,16 @@ var dump = Cu.import("resource://gre/mod
            .AndroidLog.d.bind(null, "ViewContent");
 
 function debug(aMsg) {
   // dump(aMsg);
 }
 
 class GeckoViewContent extends GeckoViewModule {
   init() {
-    this.window.QueryInterface(Ci.nsIDOMChromeWindow).browserDOMWindow = this;
-
     this.messageManager.loadFrameScript("chrome://browser/content/GeckoViewContent.js", true);
     this.messageManager.addMessageListener("GeckoView:DOMTitleChanged", this);
   }
 
   handleEvent(aEvent) {
     debug("handleEvent: aEvent.type=" + aEvent.type);
   }
 
--- a/mobile/android/modules/GeckoViewProgress.jsm
+++ b/mobile/android/modules/GeckoViewProgress.jsm
@@ -18,18 +18,16 @@ var dump = Cu.import("resource://gre/mod
            .AndroidLog.d.bind(null, "ViewNavigation");
 
 function debug(aMsg) {
   // dump(aMsg);
 }
 
 class GeckoViewProgress extends GeckoViewModule {
   init() {
-    this.window.QueryInterface(Ci.nsIDOMChromeWindow).browserDOMWindow = this;
-
     this.registerProgressListener();
   }
 
   registerProgressListener() {
     debug("registerProgressListeners()");
 
     let flags = Ci.nsIWebProgress.NOTIFY_STATE_NETWORK | Ci.nsIWebProgress.NOTIFY_SECURITY;
     this.progressFilter =