diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 26a38d5107e3..984f3faaa237 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -923,6 +923,7 @@ var gBrowserInit = { gHistorySwipeAnimation.init(); if (window.opener && !window.opener.closed && + window.opener.document.documentURIObject.schemeIs("chrome") && PrivateBrowsingUtils.isWindowPrivate(window) == PrivateBrowsingUtils.isWindowPrivate(window.opener)) { let openerSidebarBox = window.opener.document.getElementById("sidebar-box"); // If the opener had a sidebar, open the same sidebar in our window.