From a80f2b2689be98de5b80320208af0fd47f7738c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 10 Aug 2020 23:00:10 +0000 Subject: [PATCH] Bug 1639328 - Fix browser_hidden_iframe.js. r=yzen Differential Revision: https://phabricator.services.mozilla.com/D86591 --- .../browser/fission/browser_hidden_iframe.js | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/accessible/tests/browser/fission/browser_hidden_iframe.js b/accessible/tests/browser/fission/browser_hidden_iframe.js index 39f1c6140358..94b301542453 100644 --- a/accessible/tests/browser/fission/browser_hidden_iframe.js +++ b/accessible/tests/browser/fission/browser_hidden_iframe.js @@ -28,21 +28,20 @@ addAccessibleTask( ); const events = [[EVENT_REORDER, contentDocAcc]]; - if (!gIsRemoteIframe) { - // Until this event is fired, IFRAME accessible has no children attached. - events.push([ - EVENT_STATE_CHANGE, - event => { - const scEvent = event.QueryInterface(nsIAccessibleStateChangeEvent); - const id = getAccessibleDOMNodeID(event.accessible); - return ( - id === DEFAULT_IFRAME_DOC_BODY_ID && - scEvent.state === STATE_BUSY && - scEvent.isEnabled === false - ); - }, - ]); - } + // Until this event is fired, IFRAME accessible has no children attached. + events.push([ + EVENT_STATE_CHANGE, + event => { + const scEvent = event.QueryInterface(nsIAccessibleStateChangeEvent); + const id = getAccessibleDOMNodeID(event.accessible); + return ( + id === DEFAULT_IFRAME_DOC_BODY_ID && + scEvent.state === STATE_BUSY && + scEvent.isEnabled === false + ); + }, + ]); + const onEvents = waitForEvents(events); await SpecialPowers.spawn(browser, [DEFAULT_IFRAME_ID], contentId => { content.document.getElementById(contentId).style.display = "";