Bug 1134307 - Remove some CPOWs from browser_windowName.js to avoid a dead CPOW intermittent. r=mconley

--HG--
extra : rebase_source : 5e14de829b32737d2303395fb1f61d8a43cd9d5d
This commit is contained in:
Kevin Chan 2016-08-31 12:23:00 -04:00
Родитель 87d0ea2fcb
Коммит 3e2e4745d5
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -47,18 +47,18 @@ add_task(function* test() {
}));
});
is(browser1.contentDocument.title, '?old', "Tab1 title must be 'old'");
is(browser1.contentDocument.nodePrincipal.userContextId, 1, "Tab1 UCI must be 1");
is(browser1.contentTitle, '?old', "Tab1 title must be 'old'");
is(browser1.contentPrincipal.userContextId, 1, "Tab1 UCI must be 1");
is(browser2.contentDocument.title, '?old', "Tab2 title must be 'old'");
is(browser2.contentDocument.nodePrincipal.userContextId, 2, "Tab2 UCI must be 2");
is(browser2.contentTitle, '?old', "Tab2 title must be 'old'");
is(browser2.contentPrincipal.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.contentDocument.title == '?new') {
is(browser.contentDocument.nodePrincipal.userContextId, 1, "Tab3 UCI must be 1");
if (browser.contentTitle == '?new') {
is(browser.contentPrincipal.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);