Bug 1031273 - "Clear Private Data" does not clear "Recently closed tabs" from Recent Tabs. r=margaret
authorChenxia Liu <liuche@mozilla.com>
Thu, 28 Aug 2014 18:20:03 -0700
changeset 223958 ef4e47eaadd908d42dfb6510eec634f569e19576
parent 223957 18563fc917352fe9f463114ac003874e378eb5f5
child 223959 6797921c8f49f35762981bb2d0b8e4a03a9a2140
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1031273
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1031273 - "Clear Private Data" does not clear "Recently closed tabs" from Recent Tabs. r=margaret
mobile/android/components/SessionStore.js
--- a/mobile/android/components/SessionStore.js
+++ b/mobile/android/components/SessionStore.js
@@ -112,16 +112,19 @@ SessionStore.prototype = {
         this._lastClosedTabIndex = -1;
 
         if (this._loadState == STATE_RUNNING) {
           // Save the purged state immediately
           this.saveState();
         }
 
         Services.obs.notifyObservers(null, "sessionstore-state-purge-complete", "");
+        if (this._notifyClosedTabs) {
+          this._sendClosedTabsToJava(Services.wm.getMostRecentWindow("navigator:browser"));
+        }
         break;
       case "timer-callback":
         // Timer call back for delayed saving
         this._saveTimer = null;
         if (this._pendingWrite) {
           this.saveState();
         }
         break;