Bug 1236130 - Part 2: Only use cache for tabs when network state is "down" r=mcomella draft
authorGrigory Kruglov <gkruglov@mozilla.com>
Thu, 28 Apr 2016 15:27:35 -0700
changeset 363659 3dee47d4a04be5c1ca152bd0ef9e688eca1c74e5
parent 363658 f7f3ee9f335c09de6280e4d222c5c275bec04210
child 520106 a8e97dcf14523e8f572e01b286eb46fdcddfd544
push id17276
push usergkruglov@mozilla.com
push dateThu, 05 May 2016 08:28:21 +0000
reviewersmcomella
bugs1236130
milestone49.0a1
Bug 1236130 - Part 2: Only use cache for tabs when network state is "down" r=mcomella MozReview-Commit-ID: IC3lmO8cUBa
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -7207,17 +7207,17 @@ var Tabs = {
             }
           } catch (e) {}
         }
         break;
       case "network:link-status-changed":
         if (["down", "unknown", "up"].indexOf(aData) == -1) {
           return;
         }
-        this.useCache = (aData != "up");
+        this.useCache = (aData === "down");
         break;
     }
   },
 
   handleEvent: function(aEvent) {
     switch (aEvent.type) {
       case "pageshow":
         // Clear the domain cache whenever a page is loaded into any browser.