mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
Backed out changeset cea23a652dcf for landing with the wrong bug number in the commit message.
This commit is contained in:
parent
64606dd324
commit
0f50075670
@ -47,18 +47,18 @@ add_task(function* test() {
|
||||
}));
|
||||
});
|
||||
|
||||
is(browser1.contentTitle, '?old', "Tab1 title must be 'old'");
|
||||
is(browser1.contentPrincipal.userContextId, 1, "Tab1 UCI must be 1");
|
||||
is(browser1.contentDocument.title, '?old', "Tab1 title must be 'old'");
|
||||
is(browser1.contentDocument.nodePrincipal.userContextId, 1, "Tab1 UCI must be 1");
|
||||
|
||||
is(browser2.contentTitle, '?old', "Tab2 title must be 'old'");
|
||||
is(browser2.contentPrincipal.userContextId, 2, "Tab2 UCI must be 2");
|
||||
is(browser2.contentDocument.title, '?old', "Tab2 title must be 'old'");
|
||||
is(browser2.contentDocument.nodePrincipal.userContextId, 2, "Tab2 UCI must be 2");
|
||||
|
||||
let found = false;
|
||||
for (let i = 0; i < gBrowser.tabContainer.childNodes.length; ++i) {
|
||||
let tab = gBrowser.tabContainer.childNodes[i];
|
||||
let browser = gBrowser.getBrowserForTab(tab);
|
||||
if (browser.contentTitle == '?new') {
|
||||
is(browser.contentPrincipal.userContextId, 1, "Tab3 UCI must be 1");
|
||||
if (browser.contentDocument.title == '?new') {
|
||||
is(browser.contentDocument.nodePrincipal.userContextId, 1, "Tab3 UCI must be 1");
|
||||
isnot(browser, browser1, "Tab3 is not browser 1");
|
||||
isnot(browser, browser2, "Tab3 is not browser 2");
|
||||
gBrowser.removeTab(tab);
|
||||
|
Loading…
Reference in New Issue
Block a user