Bug 1096319, a=lsblakk
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 29 Dec 2014 12:12:02 -0800
changeset 234543 5deadff8cf18f43d5d0894e228e7880686876612
parent 234542 cbc30399130890bb8e6db3baaf2cf334a258dd7d
child 234544 7777266ef58b611883982c812c8ad636579ab2c2
push id7427
push usergijskruitbosch@gmail.com
push dateMon, 05 Jan 2015 12:10:00 +0000
treeherdermozilla-aurora@5deadff8cf18 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslsblakk
bugs1096319
milestone36.0a2
Bug 1096319, a=lsblakk
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -921,16 +921,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);