Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs

This commit is contained in:
Christoph Kerschbaumer
2019-01-11 12:44:20 +01:00
parent be58c1d92d
commit 82d1e43b93
28 changed files with 209 additions and 139 deletions

View File

@@ -138,7 +138,10 @@ class ContentPage {
chromeShell.createAboutBlankContentViewer(system);
chromeShell.useGlobalHistory = false;
chromeShell.loadURI("chrome://extensions/content/dummy.xul", 0, null, null, null, system);
let loadURIOptions = {
triggeringPrincipal: system,
};
chromeShell.loadURI("chrome://extensions/content/dummy.xul", loadURIOptions);
await promiseObserved("chrome-document-global-created",
win => win.document == chromeShell.document);