Bug 1496220 - 5. Pass explicit triggering principal in more places; r=jkt

When defaulting to a null triggering principal, these tests would fail
when loaded remotely. This patch adds explicit system triggering
principal to the loadURI calls.

Differential Revision: https://phabricator.services.mozilla.com/D8461
This commit is contained in:
Jim Chen 2018-11-07 16:17:18 -05:00
parent 1e9e354f33
commit 317adf283d

View File

@ -91,7 +91,8 @@
let promise = BrowserTestUtils.browserLoaded(gBrowser);
BrowserTestUtils.loadURI(gBrowser, "data:text/html,<h2 id='h2'>" + SEARCH_TEXT +
"</h2><h2><a href='" + SAMPLE_URL + "'>Link Test</a></h2><input id='text' type='text' value='" +
SAMPLE_TEXT + "'></input><input id='button' type='button'></input><img id='img' width='50' height='50'/>");
SAMPLE_TEXT + "'></input><input id='button' type='button'></input><img id='img' width='50' height='50'/>",
{ triggeringPrincipal: window.document.nodePrincipal });
await promise;
await onDocumentLoaded();
}