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
--- 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