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 18917 813007bcae071d9dccee69e716e255b74336cbfc
parent 18916 3b2907dc7e10ab57db8089e1f6eb36b8b1d22585
child 18918 0bdff60a7b4513c1d1cc851015a618ff155865eb
child 18920 f315d9f6001a4e9c3ad8951bba64518273e58b5a
push id912
push userbugzilla@standard8.plus.com
push dateThu, 08 Aug 2013 15:11:51 +0000
treeherdertry-comm-central@6c74575c00ac [default view] [failures only]
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;
   }