Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r222226 - AXObjectCache::performDeferredCacheUpdate is called r…
…ecursively through FrameView::layout. https://bugs.webkit.org/show_bug.cgi?id=176218 <rdar://problem/34205612> Reviewed by Simon Fraser. Source/WebCore: There are certain cases when we might re-enter performDeferredCacheUpdate through recursive layout calls (see webkit.org/b/177176) and mutate m_deferredTextChangedList multiple times. Test: accessibility/crash-table-recursive-layout.html * accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::performDeferredCacheUpdate): * accessibility/AXObjectCache.h: LayoutTests: * accessibility/crash-table-recursive-layout-expected.txt: Added. * accessibility/crash-table-recursive-layout.html: Added.
- Loading branch information
1 parent
1d24157
commit 6cb08de
Showing
6 changed files
with
73 additions
and
1 deletion.
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
2 changes: 2 additions & 0 deletions
2
LayoutTests/accessibility/crash-table-recursive-layout-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,2 @@ | ||
PASS if no crash. | ||
|
36 changes: 36 additions & 0 deletions
36
LayoutTests/accessibility/crash-table-recursive-layout.html
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,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
#colgrp { | ||
display: table-footer-group; | ||
} | ||
|
||
.class1 { | ||
text-transform: capitalize; | ||
display: -webkit-box; | ||
} | ||
</style> | ||
<script> | ||
if (window.accessibilityController) | ||
accessibilityController.focusedElement; | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
function runTest() { | ||
textarea.setSelectionRange(30, 1); | ||
option.defaultSelected = true; | ||
col.setAttribute("aria-labeledby", "link"); | ||
} | ||
</script> | ||
</head> | ||
<body onload=runTest()> | ||
<link id="link"> | ||
<table> | ||
<colgroup id="colgrp"> | ||
<col id="col" tabindex="1"></col> | ||
<thead class="class1"> | ||
<th class="class1"> | ||
<textarea id="textarea" readonly="readonly"></textarea> | ||
<option id="option"></option> | ||
</body> | ||
</html> |
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