зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1496220 - 4. Add triggering principal parameter to RemoteWebNavigation.loadURI; r=jkt
nsIWebNavigation.loadURI actually has an optional triggering principal parameter that RemoteWebNavigation hasn't implemented. This patch adds the extra parameter to RemoteWebNavigation's implementation so triggering principals are passed properly when loadURI is called with a triggering principal. Differential Revision: https://phabricator.services.mozilla.com/D8460 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
5e1875353b
Коммит
12b2b800ca
|
@ -65,10 +65,12 @@ RemoteWebNavigation.prototype = {
|
|||
gotoIndex(aIndex) {
|
||||
this._sendMessage("WebNavigation:GotoIndex", {index: aIndex});
|
||||
},
|
||||
loadURI(aURI, aLoadFlags, aReferrer, aPostData, aHeaders) {
|
||||
loadURI(aURI, aLoadFlags, aReferrer, aPostData, aHeaders,
|
||||
aTriggeringPrincipal) {
|
||||
this.loadURIWithOptions(aURI, aLoadFlags, aReferrer,
|
||||
Ci.nsIHttpChannel.REFERRER_POLICY_UNSET,
|
||||
aPostData, aHeaders, null);
|
||||
aPostData, aHeaders, null,
|
||||
aTriggeringPrincipal);
|
||||
},
|
||||
loadURIWithOptions(aURI, aLoadFlags, aReferrer, aReferrerPolicy,
|
||||
aPostData, aHeaders, aBaseURI, aTriggeringPrincipal) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче