DescriptionMerge 65095 - Removing an element from an anonymous block causes crash
https://bugs.webkit.org/show_bug.cgi?id=42309
Reviewed by Dave Hyatt.
WebCore:
There was a case where a continuation was added as a child, but if you asked
that child who is your parent, it would return the wrong answer.
The specific scenario was when a sibling of an element who was the start of a
continuation was present. Retrieving the parent object had then follow the sibling
chain and then follow the originating continuation chain.
Test: accessibility/removed-anonymous-block-child-causes-crash.html
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::nextSibling):
Fix erroneous comment
(WebCore::nextContinuation):
(WebCore::AccessibilityRenderObject::renderParentObject):
Handle unhandled continuation case.
(WebCore::AccessibilityRenderObject::addChildren):
ASSERT that the parentObject() is the same when adding a new child.
LayoutTests:
* accessibility/removed-anonymous-block-child-causes-crash-expected.txt: Added.
* accessibility/removed-anonymous-block-child-causes-crash.html: Added.
BUG=47126
TEST=accessibility/removed-anonymous-block-child-causes-crash.html
TBR=dmazzoni@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55683
Patch Set 1 #Patch Set 2 : '' #
Messages
Total messages: 2 (0 generated)
|