Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(26)

Issue 1207613004: Fix leaking AXNodeObjects when sub document detaches (Closed)

Created:
4 years, 10 months ago by keishi
Modified:
4 years, 5 months ago
Reviewers:
haraken, dmazzoni
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix leaking AXNodeObjects when sub document detaches Node::willBeDeletedFromDocument() is called after the Document has been detached so axObjectCacheOwner() is already disconnected and the node was failing to be removed from the cache. Test will be added in https://codereview.chromium.org/1202263005/ BUG=502782 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197755 Committed: https://crrev.com/f8161f9b3e993134f47f3b1d296a4f4a24e569f1 Cr-Commit-Position: refs/heads/master@{#359820}

Patch Set 1 #

Total comments: 1

Patch Set 2 : With speculative fix for crash #

Patch Set 3 : Move AXObjectCache::remove so it is after ContainerNode::detach #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXARIAGrid.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXImageMapLink.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXMenuList.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXMenuListPopup.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXScrollView.cpp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXSlider.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXSpinButton.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXTable.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXTableColumn.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXTableHeaderContainer.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
keishi
4 years, 10 months ago (2015-06-24 11:38:17 UTC) #2
haraken
LGTM https://codereview.chromium.org/1207613004/diff/1/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1207613004/diff/1/Source/core/dom/Document.cpp#newcode2190 Source/core/dom/Document.cpp:2190: } else if (AXObjectCache* cache = existingAXObjectCache()) { ...
4 years, 10 months ago (2015-06-24 11:52:13 UTC) #3
dmazzoni
lgtm
4 years, 10 months ago (2015-06-24 14:21:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207613004/1
4 years, 10 months ago (2015-06-24 15:08:51 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=197755
4 years, 10 months ago (2015-06-24 16:16:48 UTC) #7
amineer_google
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1208303003/ by amineer@google.com. ...
4 years, 10 months ago (2015-06-26 15:35:10 UTC) #8
keishi
I can't reproduce the crash and I can't quite figure out what's wrong. @dmazzoni could ...
4 years, 10 months ago (2015-06-29 14:58:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207613004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1207613004/60001
4 years, 5 months ago (2015-11-16 08:55:39 UTC) #12
keishi
I'm going to reland with the first speculative fix and see how it goes.
4 years, 5 months ago (2015-11-16 08:56:30 UTC) #13
haraken
On 2015/11/16 08:56:30, keishi wrote: > I'm going to reland with the first speculative fix ...
4 years, 5 months ago (2015-11-16 09:04:08 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2015-11-16 11:36:41 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2015-11-16 11:37:36 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f8161f9b3e993134f47f3b1d296a4f4a24e569f1
Cr-Commit-Position: refs/heads/master@{#359820}

Powered by Google App Engine
This is Rietveld 408576698