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:
Wes Kocher 2017-08-18 09:44:50 -07:00
parent 60c637855b
commit b40badc569

View File

@ -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;