Bug 1096319
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 29 Dec 2014 12:12:02 -0800
changeset 221489 b6c3d0131066ffe4d698b3497095acba6db94e3d
parent 221488 a91703c279ec0c0c7fe16f20e1e28d6bad43450f
child 221490 a275c8158e7838c27f9de30e9f7d8c89f330e1c1
child 221504 62e3a9f26d21e0010162986feb54265d2bbd5216
push id10606
push userkwierso@gmail.com
push dateMon, 29 Dec 2014 20:12:41 +0000
treeherderfx-team@b6c3d0131066 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1096319
milestone37.0a1
Bug 1096319
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -918,16 +918,17 @@ var gBrowserInit = {
 
     // setup simple gestures support
     gGestureSupport.init(true);
 
     // setup history swipe animation
     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.
       // The opener can be the hidden window too, if we're coming from the state
       // where no windows are open, and the hidden window has no sidebar box.
       if (openerSidebarBox && !openerSidebarBox.hidden) {
         let sidebarCmd = openerSidebarBox.getAttribute("sidebarcommand");
         let sidebarCmdElem = document.getElementById(sidebarCmd);