зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1561913 - Correctly propagate referrer policy in GeckoView nsIBrowserDOMWindow impl r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36617 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
3d039180df
Коммит
ffd5747f58
|
@ -413,6 +413,7 @@ class GeckoViewNavigation extends GeckoViewModule {
|
|||
aFlags,
|
||||
aTriggeringPrincipal,
|
||||
aCsp,
|
||||
aReferrerInfo,
|
||||
aNextRemoteTabId
|
||||
) {
|
||||
debug`handleOpenUri: uri=${aUri && aUri.spec}
|
||||
|
@ -452,9 +453,11 @@ class GeckoViewNavigation extends GeckoViewModule {
|
|||
return null;
|
||||
}
|
||||
|
||||
// 3) We have a new session and a browser element, load the requested URI.
|
||||
browser.loadURI(aUri.spec, {
|
||||
triggeringPrincipal: aTriggeringPrincipal,
|
||||
csp: aCsp,
|
||||
referrerInfo: aReferrerInfo,
|
||||
});
|
||||
return browser;
|
||||
}
|
||||
|
@ -468,6 +471,7 @@ class GeckoViewNavigation extends GeckoViewModule {
|
|||
aFlags,
|
||||
aTriggeringPrincipal,
|
||||
aCsp,
|
||||
null,
|
||||
null
|
||||
);
|
||||
return browser && browser.contentWindow;
|
||||
|
@ -482,6 +486,7 @@ class GeckoViewNavigation extends GeckoViewModule {
|
|||
aFlags,
|
||||
aParams.triggeringPrincipal,
|
||||
aParams.csp,
|
||||
aParams.referrerInfo,
|
||||
aNextRemoteTabId
|
||||
);
|
||||
return browser;
|
||||
|
|
Загрузка…
Ссылка в новой задаче