Bug 1303595 - Support preserveLayers in RDM tunnel. r=ochameau draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 04 Oct 2016 16:31:13 -0500
changeset 420881 0f226ae23c8600c0004e39f7334b0651d9b65c7e
parent 419507 5ffed033557e5b6f9694123f1948f867f913ede3
child 420882 60cbbd23ad055263196e7166fe78bbf9743f1d44
push id31333
push userbmo:jryans@gmail.com
push dateTue, 04 Oct 2016 22:37:35 +0000
reviewersochameau
bugs1303595, 1279086
milestone52.0a1
Bug 1303595 - Support preserveLayers in RDM tunnel. r=ochameau Bug 1279086 removed setDocShellIsActiveAndForeground and added preserveLayers in its place. This updates the RDM tunnel to match. MozReview-Commit-ID: DarZxxTkHVS
devtools/client/responsive.html/browser/tunnel.js
--- a/devtools/client/responsive.html/browser/tunnel.js
+++ b/devtools/client/responsive.html/browser/tunnel.js
@@ -172,18 +172,18 @@ function tunnelToInnerBrowser(outer, inn
           inner.frameLoader.tabParent.docShellIsActive = value;
         },
         configurable: true,
         enumerable: true,
       });
 
       // Wants to access the content's `frameLoader`, so we'll redirect it to
       // inner browser.
-      outer.setDocShellIsActiveAndForeground = value => {
-        inner.frameLoader.tabParent.setDocShellIsActiveAndForeground(value);
+      outer.preserveLayers = value => {
+        inner.frameLoader.tabParent.preserveLayers(value);
       };
 
       // Make the PopupNotifications object available on the iframe's owner
       // This is used for permission doorhangers
       Object.defineProperty(inner.ownerGlobal, "PopupNotifications", {
         get() {
           return outer.ownerGlobal.PopupNotifications;
         },
@@ -213,17 +213,17 @@ function tunnelToInnerBrowser(outer, inn
       outer.style.MozBinding = "";
 
       // Reset overridden XBL properties and methods.  Deleting the override
       // means it will fallback to the original XBL binding definitions which
       // are on the prototype.
       delete outer.isRemoteBrowser;
       delete outer.hasContentOpener;
       delete outer.docShellIsActive;
-      delete outer.setDocShellIsActiveAndForeground;
+      delete outer.preserveLayers;
 
       // Delete the PopupNotifications getter added for permission doorhangers
       delete inner.ownerGlobal.PopupNotifications;
 
       mmTunnel.destroy();
       mmTunnel = null;
 
       // Invalidate outer's permanentKey so that SessionStore stops associating