Bug 1630908 - Part 1: Pass OriginAttributes to be included with remote type, r=nika,marionette-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D101073
This commit is contained in:
Anny Gakhokidze
2021-01-19 22:23:29 +00:00
parent aa981f5af7
commit 465bfe416d
12 changed files with 164 additions and 44 deletions

View File

@@ -3122,10 +3122,14 @@ async function BrowserViewSourceOfDocument(args) {
// source in tab expects the new view source browser's remoteness to match
// that of the original URL, so disable remoteness if necessary for this
// URL.
var oa = E10SUtils.predictOriginAttributes({ window });
preferredRemoteType = E10SUtils.getRemoteTypeForURI(
args.URL,
gMultiProcessBrowser,
gFissionBrowser
gFissionBrowser,
E10SUtils.DEFAULT_REMOTE_TYPE,
null,
oa
);
}