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

Issue 364293004: CANCEL: Make Range::insertNode to validate new end boundary point before using it (Closed)

Created:
6 years, 5 months ago by yosin_UTC9
Modified:
6 years, 4 months ago
Reviewers:
yoichio, Yuta Kitamura
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Another patch http://crrev.com/443103002 fixed this. Make Range::insertNode to validate new end boundary point before using it In |Range::insertNode()|, we use |EventQueueScope| to postpone execution of event handler during DOM mutation. But, "load" event handler for capturing phase is executed after |ContainerNode::insertNode| or |ContainerNode::appendChild| call. This patch makes |Range::insertNode()| to validate new end boundary point, which can be modified during |ContainerNode::insertNode| call by event handler, before using it. BUG=353329 TEST=LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html

Patch Set 1 #

Total comments: 6

Patch Set 2 : 2014-07-04T05:04:32 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
A LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html View 1 1 chunk +26 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/Range/surroundContents-iframe-crash-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/dom/Range.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
yosin_UTC9
Could you review this patch? Thanks in advance. Another option to fix the issue is ...
6 years, 5 months ago (2014-07-04 05:09:42 UTC) #1
Yuta Kitamura
I think EventQueueScope should prevent this case as well... https://codereview.chromium.org/364293004/diff/1/LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html File LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html (right): https://codereview.chromium.org/364293004/diff/1/LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html#newcode8 LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html:8: ...
6 years, 5 months ago (2014-07-04 07:11:33 UTC) #2
yosin_UTC9
On 2014/07/04 07:11:33, Yuta Kitamura wrote: > I think EventQueueScope should prevent this case as ...
6 years, 5 months ago (2014-07-04 08:45:09 UTC) #3
yosin_UTC9
PTAL https://codereview.chromium.org/364293004/diff/1/LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html File LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html (right): https://codereview.chromium.org/364293004/diff/1/LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html#newcode8 LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html:8: var insSurroundContents = false; On 2014/07/04 07:11:33, Yuta ...
6 years, 5 months ago (2014-07-04 08:45:16 UTC) #4
yosin_UTC9
6 years, 5 months ago (2014-07-09 01:28:31 UTC) #5
PTAL

Powered by Google App Engine
This is Rietveld 408576698