diff --git a/testing/mochitest/tests/browser/browser_waitForFocus.js b/testing/mochitest/tests/browser/browser_waitForFocus.js index 9edca052981..8f9e2758690 100644 --- a/testing/mochitest/tests/browser/browser_waitForFocus.js +++ b/testing/mochitest/tests/browser/browser_waitForFocus.js @@ -50,7 +50,7 @@ add_task(function *() { 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(); });