mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Backed out changeset 0ed17c747e28 (bug 1383299) for xpcshell bustage a=backout CLOSED TREE
MozReview-Commit-ID: F92HvpkHcyY --HG-- extra : amend_source : db7c32253ca547e9440405cfc3c97ce639eb7adf
This commit is contained in:
parent
60c637855b
commit
b40badc569
@ -37,12 +37,8 @@ let gFirstPartyBasicPage = TEST_URL_PATH + "file_firstPartyBasic.html";
|
||||
* browser - The browser object of this tab.
|
||||
*/
|
||||
async function openTabInUserContext(aURL, aUserContextId) {
|
||||
let originAttributes = {
|
||||
userContextId: aUserContextId
|
||||
};
|
||||
let triggeringPrincipal = Services.scriptSecurityManager.createCodebasePrincipal(makeURI(aURL), originAttributes);
|
||||
// Open the tab in the correct userContextId.
|
||||
let tab = BrowserTestUtils.addTab(gBrowser, aURL, {userContextId: aUserContextId, triggeringPrincipal});
|
||||
let tab = BrowserTestUtils.addTab(gBrowser, aURL, {userContextId: aUserContextId});
|
||||
|
||||
// Select tab and make sure its browser is focused.
|
||||
gBrowser.selectedTab = tab;
|
||||
|
Loading…
Reference in New Issue
Block a user