mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
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:
parent
1e9e354f33
commit
317adf283d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user