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

Issue 1555653002: Handle some failing DocumentOrderedMap ID lookups across tree removals. (Closed)

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

Description

Handle some failing DocumentOrderedMap ID lookups across tree removals. r366066's attempt to better handle failing DocumentOrderedMap lookups while an element is being removed from a tree with duplicate IDs, didn't accommodate all cases where the document map might end up being consulted. Widen the assert and have it scope over node removals; should the unlikely case happen, recognize that the tree is in a transitory state and allow the lookup to quietly fail. TBR=esprehn BUG=571351 Committed: https://crrev.com/592eb5df9a5d469cdacb48559945e0dfdd7abb10 Cr-Commit-Position: refs/heads/master@{#368321}

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 11

Patch Set 3 : simplify removal scope tracking, make it global #

Patch Set 4 : combat unused-variable warning-as-error errors #

Patch Set 5 : non-assert buildfix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -55 lines) Patch
A third_party/WebKit/LayoutTests/svg/filters/feImage-remove-duplicate-id-no-crash.html View 1 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/filters/feImage-remove-duplicate-id-no-crash-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.cpp View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentOrderedMap.h View 1 2 3 3 chunks +20 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp View 1 2 3 4 3 chunks +18 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TreeScope.cpp View 2 1 chunk +0 lines, -32 lines 0 comments Download

Messages

Total messages: 36 (16 generated)
sof
please take a look (next year.)
4 years, 11 months ago (2015-12-30 22:12:20 UTC) #4
esprehn
I guess this is okay, really we should probably collect all the observers in a ...
4 years, 11 months ago (2016-01-05 07:48:33 UTC) #5
sof
https://codereview.chromium.org/1555653002/diff/40001/third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp File third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp (right): https://codereview.chromium.org/1555653002/diff/40001/third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp#newcode56 third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp:56: void DocumentOrderedMap::enterTreeRemoveScope() On 2016/01/05 07:48:33, esprehn wrote: > no ...
4 years, 11 months ago (2016-01-05 07:53:37 UTC) #6
esprehn
On 2016/01/05 at 07:53:37, sigbjornf wrote: > https://codereview.chromium.org/1555653002/diff/40001/third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp > File third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp (right): > > https://codereview.chromium.org/1555653002/diff/40001/third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp#newcode56 ...
4 years, 11 months ago (2016-01-05 08:34:56 UTC) #7
sof
On 2016/01/05 08:34:56, esprehn wrote: > On 2016/01/05 at 07:53:37, sigbjornf wrote: > > > ...
4 years, 11 months ago (2016-01-05 08:40:47 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555653002/60001
4 years, 11 months ago (2016-01-05 12:35:56 UTC) #10
sof
https://codereview.chromium.org/1555653002/diff/40001/third_party/WebKit/Source/core/dom/DocumentOrderedMap.h File third_party/WebKit/Source/core/dom/DocumentOrderedMap.h (right): https://codereview.chromium.org/1555653002/diff/40001/third_party/WebKit/Source/core/dom/DocumentOrderedMap.h#newcode68 third_party/WebKit/Source/core/dom/DocumentOrderedMap.h:68: void enterTreeRemoveScope(); On 2016/01/05 07:48:33, esprehn wrote: > put ...
4 years, 11 months ago (2016-01-05 12:37:18 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/75386) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 11 months ago (2016-01-05 12:56:45 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555653002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555653002/80001
4 years, 11 months ago (2016-01-05 14:39:12 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/75400)
4 years, 11 months ago (2016-01-05 14:53:13 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555653002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555653002/100001
4 years, 11 months ago (2016-01-05 15:15:12 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-05 16:50:37 UTC) #22
sof
good to go?
4 years, 11 months ago (2016-01-06 08:29:02 UTC) #23
sof
On 2016/01/06 08:29:02, sof wrote: > good to go? ping?
4 years, 11 months ago (2016-01-07 15:39:02 UTC) #24
sof
landing, will follow up should there be more to attend to.
4 years, 11 months ago (2016-01-08 10:48:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555653002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555653002/100001
4 years, 11 months ago (2016-01-08 10:48:52 UTC) #27
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 11 months ago (2016-01-08 10:48:54 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555653002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555653002/100001
4 years, 11 months ago (2016-01-08 12:17:31 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 11 months ago (2016-01-08 13:40:27 UTC) #34
commit-bot: I haz the power
4 years, 11 months ago (2016-01-08 13:41:15 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/592eb5df9a5d469cdacb48559945e0dfdd7abb10
Cr-Commit-Position: refs/heads/master@{#368321}

Powered by Google App Engine
This is Rietveld 408576698