Bug 875889 Private sidebar searches should not open in a normal window r=IanN
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Thu, 20 Jun 2013 21:33:10 +0100
changeset 12610 da20e53a7321a6ada0e3bff0d777397e98add70f
parent 12609 c676fc4b9ae0be9bf1c12a6046b8711f1026ae88
child 12611 7d9d4b2d5284649878b56423c27b4fe80afa78e3
push id9263
push userneil@parkwaycc.co.uk
push dateThu, 20 Jun 2013 20:41:03 +0000
treeherdercomm-central@0c3b85a1c1f7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN
bugs875889
Bug 875889 Private sidebar searches should not open in a normal window r=IanN
suite/common/utilityOverlay.js
--- a/suite/common/utilityOverlay.js
+++ b/suite/common/utilityOverlay.js
@@ -570,17 +570,17 @@ function goClickThrobber(urlPref, aEvent
 {
   var url = GetLocalizedStringPref(urlPref);
   if (url)
     openUILinkIn(url, whereToOpenLink(aEvent, false, true, true));
 }
 
 function getTopWin()
 {
-  return gPrivate || Services.wm.getMostRecentWindow("navigator:browser");
+  return top.gPrivate || Services.wm.getMostRecentWindow("navigator:browser");
 }
 
 function isRestricted( url )
 {
   try {
     const nsIURIFixup = Components.interfaces.nsIURIFixup;
     var uri = Components.classes["@mozilla.org/docshell/urifixup;1"]
                         .getService(nsIURIFixup)