Bug 896404 - Private Browsing information leak in openNewTabOrWindow(). r=Neil a=Callek (also a=Callek for CLOSED TREE) SEAMONKEY_2_20b3_BUILD1 SEAMONKEY_2_20b3_RELEASE
authorPhilip Chee <philip.chee@gmail.com>
Mon, 22 Jul 2013 20:48:20 +0800
changeset 15596 813007bcae071d9dccee69e716e255b74336cbfc
parent 15595 3b2907dc7e10ab57db8089e1f6eb36b8b1d22585
child 15597 0bdff60a7b4513c1d1cc851015a618ff155865eb
child 15599 f315d9f6001a4e9c3ad8951bba64518273e58b5a
push idunknown
push userunknown
push dateunknown
reviewersNeil, Callek, Callek
bugs896404
Bug 896404 - Private Browsing information leak in openNewTabOrWindow(). r=Neil a=Callek (also a=Callek for CLOSED TREE)
suite/common/contentAreaClick.js
--- a/suite/common/contentAreaClick.js
+++ b/suite/common/contentAreaClick.js
@@ -94,17 +94,20 @@
     if (Services.prefs.getBoolPref("browser.tabs.opentabfor.middleclick")) {
       openNewTabWith(href, doc, null, event);
       event.stopPropagation();
       return true;
     }
 
     // should we open it in a new window?
     if (Services.prefs.getBoolPref("middlemouse.openNewWindow")) {
-      openNewWindowWith(href, doc);
+      if (gPrivate)
+        openNewPrivateWith(href, doc);
+      else
+        openNewWindowWith(href, doc);
       event.stopPropagation();
       return true;
     }
 
     // let someone else deal with it
     return false;
   }