Bug 1199295 - Pass right loadingPrincipal to uriloader/prefetch - browser (r=gijs)
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Fri, 02 Oct 2015 09:15:42 -0700
changeset 265767 dd3f94001ecdc0fa86225ceb89b0619e39e2cbf0
parent 265766 d699f02b8d9e65f56be7b68bb3997f14580cc359
child 265768 5e9bf8fead19f79266a3405f6da17ceed96cea64
push id66019
push usermozilla@christophkerschbaumer.com
push dateFri, 02 Oct 2015 16:20:50 +0000
treeherdermozilla-inbound@eb4a8da5c964 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgijs
bugs1199295
milestone44.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 1199295 - Pass right loadingPrincipal to uriloader/prefetch - browser (r=gijs)
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -6282,17 +6282,18 @@ var OfflineApps = {
     if (!manifest)
       return;
 
     var manifestURI = makeURI(manifest, aDocument.characterSet,
                               aDocument.documentURIObject);
 
     var updateService = Cc["@mozilla.org/offlinecacheupdate-service;1"].
                         getService(Ci.nsIOfflineCacheUpdateService);
-    updateService.scheduleUpdate(manifestURI, aDocument.documentURIObject, window);
+    updateService.scheduleUpdate(manifestURI, aDocument.documentURIObject,
+                                 aDocument.nodePrincipal, window);
   },
 
   /////////////////////////////////////////////////////////////////////////////
   // nsIObserver
   observe: function (aSubject, aTopic, aState)
   {
     if (aTopic == "offline-cache-update-completed") {
       var cacheUpdate = aSubject.QueryInterface(Ci.nsIOfflineCacheUpdate);