Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Issue 1089813004: Delay m_axObjectCache clearing during Document detach (Closed)

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

Description

Delay m_axObjectCache clearing during Document detach While blink::Document::detach() is working, AXLayoutObject is re-created after clearAXObjectCache() because chrome().focusedNodeChanged causes access to document.accessibilityObject(). It causes ASSERTION FAILED: !m_hasAXObject at ~LayoutObject(). This patch makes clearAXObjectCache() be called after chrome().focusedNodeChanged is handled in order to avoid re-access after clear AX objects. BUG=480140 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194599

Patch Set 1 #

Patch Set 2 : Upload code #

Total comments: 2

Patch Set 3 : Remove clearAXObjectCache() from ~Document() #

Total comments: 4

Patch Set 4 : Add ASSERT #

Patch Set 5 : Keep clearAXObjectCache() at ~Document() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M Source/core/dom/Document.cpp View 3 4 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (6 generated)
je_julie(Not used)
Hi Dominic and Nate Chapin, I can see ASSERTION FAILED related to Accessibility. I updated ...
5 years, 8 months ago (2015-04-23 14:49:28 UTC) #2
dmazzoni
lgtm Thanks for debugging this and for the excellent change description. This seems like a ...
5 years, 8 months ago (2015-04-23 17:01:55 UTC) #3
je_julie(Not used)
On 2015/04/23 17:01:55, dmazzoni wrote: > lgtm > > Thanks for debugging this and for ...
5 years, 8 months ago (2015-04-24 03:52:15 UTC) #4
je_julie(Not used)
I think Nate is busy. @sof, could you take a look?
5 years, 8 months ago (2015-04-24 14:35:24 UTC) #6
sof
Change looks fine, but I wonder if we can push this one step further. Cc:ing ...
5 years, 8 months ago (2015-04-27 06:27:07 UTC) #8
je_julie(Not used)
@sof, thanks for your review. I updated code. PTAL. https://codereview.chromium.org/1089813004/diff/20001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1089813004/diff/20001/Source/core/dom/Document.cpp#newcode2155 Source/core/dom/Document.cpp:2155: ...
5 years, 8 months ago (2015-04-27 19:08:31 UTC) #9
sof
Good, this takes care of a latent Oilpan bug -- calling axObjectCacheOwner() from ~Document() is ...
5 years, 8 months ago (2015-04-27 20:05:59 UTC) #10
sof
Could change the CL title to something like Delay AX object cache clearing during Document ...
5 years, 8 months ago (2015-04-27 20:15:10 UTC) #11
je_julie(Not used)
@sof, I updated the patchset and the CL title. PTAL. https://codereview.chromium.org/1089813004/diff/40001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1089813004/diff/40001/Source/core/dom/Document.cpp#newcode531 ...
5 years, 8 months ago (2015-04-27 23:21:59 UTC) #12
haraken
This is basically a nice change, but unfotunately Document::detach() is not guaranteed to be called ...
5 years, 7 months ago (2015-04-28 01:18:38 UTC) #13
sof
On 2015/04/28 01:18:38, haraken wrote: > This is basically a nice change, but unfotunately Document::detach() ...
5 years, 7 months ago (2015-04-28 05:10:33 UTC) #14
sof
lgtm, let's try this. if haraken wants to override and suggest keeping the clearing in ...
5 years, 7 months ago (2015-04-28 07:27:39 UTC) #15
je_julie(Not used)
On 2015/04/28 07:27:39, sof wrote: > lgtm, let's try this. > > if haraken wants ...
5 years, 7 months ago (2015-04-28 10:33:46 UTC) #16
haraken
On 2015/04/28 10:33:46, je_julie wrote: > On 2015/04/28 07:27:39, sof wrote: > > lgtm, let's ...
5 years, 7 months ago (2015-04-28 10:36:57 UTC) #18
sof
On 2015/04/28 10:36:57, haraken wrote: > On 2015/04/28 10:33:46, je_julie wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 10:38:53 UTC) #19
haraken
On 2015/04/28 05:10:33, sof wrote: > On 2015/04/28 01:18:38, haraken wrote: > > This is ...
5 years, 7 months ago (2015-04-28 10:47:20 UTC) #20
je_julie(Not used)
On 2015/04/28 10:47:20, haraken wrote: > On 2015/04/28 05:10:33, sof wrote: > > Given https://codereview.chromium.org/1089813004/#msg14 ...
5 years, 7 months ago (2015-04-28 11:31:04 UTC) #21
sof
On 2015/04/28 11:31:04, je_julie wrote: > On 2015/04/28 10:47:20, haraken wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 11:34:32 UTC) #22
je_julie(Not used)
On 2015/04/28 11:34:32, sof wrote: > On 2015/04/28 11:31:04, je_julie wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 11:42:45 UTC) #23
haraken
On 2015/04/28 11:42:45, je_julie wrote: > On 2015/04/28 11:34:32, sof wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 11:43:39 UTC) #24
je_julie(Not used)
On 2015/04/28 11:43:39, haraken wrote: > On 2015/04/28 11:42:45, je_julie wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 11:57:01 UTC) #25
haraken
On 2015/04/28 11:57:01, je_julie wrote: > On 2015/04/28 11:43:39, haraken wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 11:57:26 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089813004/80001
5 years, 7 months ago (2015-04-28 11:57:35 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 13:22:41 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194599

Powered by Google App Engine
This is Rietveld 408576698