Bug 1240912 - Add outerWindowID getter for request matching. r=ochameau draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Wed, 17 Aug 2016 19:24:47 -0500
changeset 402169 3c797cae9e501d6a4dcbb288450221742a811e17
parent 402168 26b2f193a08e683d9dff466ad7d88db27c77a739
child 528632 8d66ce6bd836644aa5d1b0b7161e8ece1eea501b
push id26614
push userbmo:jryans@gmail.com
push dateThu, 18 Aug 2016 01:07:09 +0000
reviewersochameau
bugs1240912
milestone51.0a1
Bug 1240912 - Add outerWindowID getter for request matching. r=ochameau MozReview-Commit-ID: DlatvZVE8qu
devtools/client/responsive.html/browser/swap.js
--- a/devtools/client/responsive.html/browser/swap.js
+++ b/devtools/client/responsive.html/browser/swap.js
@@ -207,16 +207,25 @@ function addXULBrowserDecorations(browse
     Object.defineProperty(browser, "messageManager", {
       get() {
         return this.frameLoader.messageManager;
       },
       configurable: true,
       enumerable: true,
     });
   }
+  if (browser.outerWindowID == undefined) {
+    Object.defineProperty(browser, "outerWindowID", {
+      get() {
+        return browser._outerWindowID;
+      },
+      configurable: true,
+      enumerable: true,
+    });
+  }
 
   // It's not necessary for these to actually do anything.  These properties are
   // swapped between browsers in browser.xml's `swapDocShells`, and then their
   // `swapBrowser` methods are called, so we define them here for that to work
   // without errors.  During the swap process above, these will move from the
   // the new inner browser to the original tab's browser (step 4) and then to
   // the temporary container tab's browser (step 7), which is then closed.
   if (browser._remoteWebNavigationImpl == undefined) {