Bug 1233497 - Swap a busted CPOW with a working one in browser_waitForFocus. r?billm
--- a/testing/mochitest/tests/browser/browser_waitForFocus.js
+++ b/testing/mochitest/tests/browser/browser_waitForFocus.js
@@ -45,17 +45,17 @@ add_task(function *() {
yield promiseTabLoadEvent(tab, gBaseURL + "waitForFocusPage.html");
yield SimpleTest.promiseFocus(browser.contentWindowAsCPOW);
is(document.activeElement, browser, "Browser is focused when page is loaded");
yield SimpleTest.promiseFocus(browser.contentWindowAsCPOW.frames[0]);
- is(browser.contentDocumentAsCPOW.activeElement.localName, "iframe", "Child iframe is focused");
+ is(browser.contentWindowAsCPOW.document.activeElement.localName, "iframe", "Child iframe is focused");
gBrowser.removeCurrentTab();
});
// Pass a browser to promiseFocus
add_task(function *() {
yield BrowserTestUtils.openNewForegroundTab(gBrowser, gBaseURL + "waitForFocusPage.html");