Last page visited should not include private browsing windows r=IanN a=Callek
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Sun, 23 Jun 2013 12:21:41 +0100
changeset 18498 0be1bcbc416c7a6d49a407874cee88de3ececce0
parent 18497 add50df1999673d1178220b68b6a7400a18856fc
child 18499 8710bdf5b09f5910a4fa21e3cc96a68ffaa60a38
push id902
push userbugzilla@standard8.plus.com
push dateMon, 05 Aug 2013 09:09:02 +0000
treeherdertry-comm-central@36a590aa4907 [default view] [failures only]
reviewersIanN, Callek
Last page visited should not include private browsing windows r=IanN a=Callek
suite/common/src/nsSuiteGlue.js
--- a/suite/common/src/nsSuiteGlue.js
+++ b/suite/common/src/nsSuiteGlue.js
@@ -193,17 +193,19 @@ SuiteGlue.prototype = {
 
   // nsIWebProgressListener partial implementation
   onLocationChange: function(aWebProgress, aRequest, aLocation, aFlags)
   {
     if (aWebProgress.DOMWindow.top == aWebProgress.DOMWindow &&
         aWebProgress instanceof Components.interfaces.nsIDocShell &&
         aWebProgress.loadType & Components.interfaces.nsIDocShell.LOAD_CMD_NORMAL &&
         aWebProgress instanceof Components.interfaces.nsIDocShellHistory &&
-        aWebProgress.useGlobalHistory) {
+        aWebProgress.useGlobalHistory &&
+        aWebProgress instanceof Components.interfaces.nsILoadContext &&
+        !aWebProgress.usePrivateBrowsing) {
       switch (aLocation.scheme) {
         case "about":
         case "imap":
         case "news":
         case "mailbox":
         case "moz-anno":
         case "view-source":
         case "chrome":