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:
Jim Chen 2018-10-17 16:12:38 +00:00
Родитель 5e1875353b
Коммит 12b2b800ca
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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) {