Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where iframe content wasn't included in the accessibility tree
Fix issue where iframe content wasn't included in the accessibility tree https://bugs.webkit.org/show_bug.cgi?id=117456 Reviewed by Chris Fleizach. Merge - https://chromium.googlesource.com/chromium/blink/+/af4e73e2bfb32fce56854ef0dab33077c7fa6bff Have RenderWidget notify the accessibility object when its widget changes, otherwise the AccessibilityRenderObject for the iframe might have a stale reference to the previous widget. (This would not crash, it would just result in an empty subtree until some other event triggered it to update.) This allows us to re-enable this test, that was previously failing flakily or being skipped because of this bug: loading-iframe-updates-axtree.html * Source/WebCore/rendering/RenderWidget.cpp: (WebCore::RenderWidget::setWidget): Update to add stale condition * LayoutTests/platform/win/TestExpectations: Remove Skipped Test "loading-iframe-updates-axtree.html" * LayoutTests/platform/wincairo-wk1/TestExpectations: Remove Skipped Test "loading-iframe-updates-axtree.html" * LayoutTests/platform/wk2/TestExpectations: Remove Skipped Test "loading-iframe-updates-axtree.html" * LayoutTests/platform/mac/accessibility/loading-iframe-updates-axtree-expected.txt: Add Platform Specific Test Expectations * LayoutTests/accessibility/loading-iframe-updates-axtree-expected.txt: Update Test Expectations Canonical link: https://commits.webkit.org/255407@main
- Loading branch information
1 parent
fc01491
commit 0efc0bf
Showing
6 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
LayoutTests/platform/mac/accessibility/loading-iframe-updates-axtree-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Before | ||
|
||
|
||
After | ||
|
||
End of test | ||
|
||
This tests that if an iframe loads new content after its accessibility object has already been accessed, the iframe accessibility object's descendants are the new scroll area and web area, not the old deleted ones. | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
iframe.isEqual(newIframe): true | ||
scrollarea.isEqual(newScrollarea): false | ||
subwebarea.isEqual(newSubwebarea): false | ||
PASS newSubwebarea.childrenCount > 0 is true | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters