Bug 1199295 - Pass right loadingPrincipal to uriloader/prefetch - b2g changes (r=sicking)
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Fri, 02 Oct 2015 09:16:24 -0700
changeset 299202 8d76980d51998798b68cdf4f931b139c62ce2a06
parent 299201 5e9bf8fead19f79266a3405f6da17ceed96cea64
child 299203 eb4a8da5c9645778a0dca4c4920c54b93c055348
push id5392
push userraliiev@mozilla.com
push dateMon, 14 Dec 2015 20:08:23 +0000
treeherdermozilla-beta@16ce8562a975 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
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 - b2g changes (r=sicking)
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -661,17 +661,17 @@ var shell = {
                                           Ci.nsIPermissionManager.ALLOW_ACTION);
 
           let documentURI = Services.io.newURI(contentWindow.document.documentURI,
                                                null,
                                                null);
           let manifestURI = Services.io.newURI(manifest, null, documentURI);
           let updateService = Cc['@mozilla.org/offlinecacheupdate-service;1']
                               .getService(Ci.nsIOfflineCacheUpdateService);
-          updateService.scheduleUpdate(manifestURI, documentURI, window);
+          updateService.scheduleUpdate(manifestURI, documentURI, principal, window);
         } catch (e) {
           dump('Error while creating offline cache: ' + e + '\n');
         }
         break;
       case 'MozAfterPaint':
         window.removeEventListener('MozAfterPaint', this);
         // This event should be sent before System app returns with
         // system-message-listener-ready mozContentEvent, because it's on