From 165b6e2e2626bf2400aebf5bd6bbc0e4c62ef004 Mon Sep 17 00:00:00 2001 From: James Teh Date: Tue, 22 Jun 2021 23:11:25 +0000 Subject: [PATCH] Bug 1598750: Make browser_nested_iframe.js wait for doc load complete if the nested iframe doc accessible isn't present yet. r=morgan For OOP iframes, a doc load complete event on the embedder document doesn't necessarily mean the iframe document has finished loading yet. We already checked for the busy state on the nested iframe doc and waited for a doc load complete event in that case. However, depending on timing, it might be possible there is no document at all (even a busy one), so we should wait for doc load complete in that case too. This is a speculative fix; I wasn't able to reproduce this myself. Differential Revision: https://phabricator.services.mozilla.com/D118123 --- .../browser/fission/browser_nested_iframe.js | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/accessible/tests/browser/fission/browser_nested_iframe.js b/accessible/tests/browser/fission/browser_nested_iframe.js index 0e48d767f888..a9cc236ee19a 100644 --- a/accessible/tests/browser/fission/browser_nested_iframe.js +++ b/accessible/tests/browser/fission/browser_nested_iframe.js @@ -38,17 +38,27 @@ function getOsPid(browsingContext) { addAccessibleTask( `