Bug 925219 - Fix app validator caching issue. r=paul, a=lsblakk
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 15 Oct 2013 13:28:25 -0400
changeset 160771 28acf9adf06941579f1939c8b26ee8451fbc543d
parent 160770 ae0bba31d96770bc8b15d3f901ede60fd53a7906
child 160772 1cfa9e04efb77cbb8ce1743a69257dc9f0ab591b
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul, lsblakk
bugs925219
milestone26.0a2
Bug 925219 - Fix app validator caching issue. r=paul, a=lsblakk
browser/devtools/app-manager/app-validator.js
--- a/browser/devtools/app-manager/app-validator.js
+++ b/browser/devtools/app-manager/app-validator.js
@@ -49,17 +49,17 @@ AppValidator.prototype._fetchManifest = 
   let req = new XMLHttpRequest();
   try {
     req.open("GET", manifestURL, true);
   } catch(e) {
     this.error(strings.formatStringFromName("validator.invalidManifestURL", [manifestURL], 1));
     deferred.resolve(null);
     return deferred.promise;
   }
-  req.channel.loadFlags |= Ci.nsIRequest.INHIBIT_CACHING;
+  req.channel.loadFlags |= Ci.nsIRequest.LOAD_BYPASS_CACHE | Ci.nsIRequest.INHIBIT_CACHING;
   req.onload = (function () {
     let manifest = null;
     try {
       manifest = JSON.parse(req.responseText);
     } catch(e) {
       this.error(strings.formatStringFromName("validator.invalidManifestJSON", [e, manifestURL], 2));
     }
     deferred.resolve(manifest);