зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1650089 - Part 5: Skip the unnecessary about:blank load when loading view-source for a document, r=Gijs
This load was causing a process switch after the changes in this patch. This caused the view-source load to also process-switch back when loaded and confused some view-source machinery. The load isn't necessary, and if skipped the process switch due to navigation will not occur. Differential Revision: https://phabricator.services.mozilla.com/D120736
This commit is contained in:
Родитель
e856f2d394
Коммит
beae93f726
|
@ -3168,6 +3168,7 @@ async function BrowserViewSourceOfDocument(args) {
|
|||
preferredRemoteType,
|
||||
initialBrowsingContextGroupId,
|
||||
triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
|
||||
skipLoad: true,
|
||||
});
|
||||
args.viewSourceBrowser = tabBrowser.getBrowserForTab(tab);
|
||||
top.gViewSourceUtils.viewSourceInBrowser(args);
|
||||
|
|
Загрузка…
Ссылка в новой задаче