Bug 1096319, a=lsblakk
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 29 Dec 2014 12:12:02 -0800
changeset 200496 ec4f6e86bedb89a3ea1d6c46d47257584b360fd9
parent 200495 d13776405921ffc1eb469fae999a92a9f84e257f
child 200497 76b3e3d79d9555e22cacbe1c3f5663d5a503c08c
push id154
push usergijskruitbosch@gmail.com
push dateMon, 05 Jan 2015 12:11:23 +0000
treeherdermozilla-esr31@ec4f6e86bedb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslsblakk
bugs1096319
milestone31.3.0esr
Bug 1096319, a=lsblakk
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -804,16 +804,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);