Bug 1490257 - Add principal to JS code for passing explicit triggeringPrincipals. r=ckerschb

Depends on D10882

Differential Revision: https://phabricator.services.mozilla.com/D10883
This commit is contained in:
Jonathan Kingston
2018-11-05 14:05:19 +00:00
parent f0bed97428
commit 4aa72da6df
9 changed files with 31 additions and 12 deletions

View File

@@ -136,7 +136,9 @@ RemoteWebNavigation.prototype = {
return this._currentURI;
},
set currentURI(aURI) {
this.loadURI(aURI.spec, null, null, null);
// Bug 1498600 verify usages of systemPrincipal here
let systemPrincipal = Services.scriptSecurityManager.getSystemPrincipal();
this.loadURI(aURI.spec, null, null, null, systemPrincipal);
},
referringURI: null,