Bug 1096319
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 29 Dec 2014 12:12:02 -0800
changeset 221501 b6c3d0131066ffe4d698b3497095acba6db94e3d
parent 221500 a91703c279ec0c0c7fe16f20e1e28d6bad43450f
child 221502 62e3a9f26d21e0010162986feb54265d2bbd5216
child 221573 a275c8158e7838c27f9de30e9f7d8c89f330e1c1
push id28031
push userkwierso@gmail.com
push dateTue, 30 Dec 2014 00:55:49 +0000
treeherdermozilla-central@62e3a9f26d21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1096319
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);