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

Issue 2747113003: Let Range::expand not crash when Range's start node is not connected to document. (Closed)

Created:
3 years, 9 months ago by yoichio
Modified:
3 years, 9 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let Range::expand not crash when Range's start node is not connected to document. In the condition, Range::expand calls create VisiblePosition and DCHECK(node.isConnected()) failed. This CL lets Range::expand not do nothing in the condition. BUG=698123 Review-Url: https://codereview.chromium.org/2747113003 Cr-Commit-Position: refs/heads/master@{#457340} Committed: https://chromium.googlesource.com/chromium/src/+/67a26dc6928cf5dac2f2f2242f24ddb5b60e216b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M third_party/WebKit/Source/core/dom/Range.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/RangeTest.cpp View 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
yoichio
3 years, 9 months ago (2017-03-16 01:44:47 UTC) #8
tkent
Can you remove Range::expand() instead of fixing it? crbug.com/445218
3 years, 9 months ago (2017-03-16 01:47:15 UTC) #9
yoichio
On 2017/03/16 01:47:15, tkent wrote: > Can you remove Range::expand() instead of fixing it? > ...
3 years, 9 months ago (2017-03-16 01:58:09 UTC) #10
yosin_UTC9
On 2017/03/16 at 01:58:09, yoichio wrote: > On 2017/03/16 01:47:15, tkent wrote: > > Can ...
3 years, 9 months ago (2017-03-16 02:14:53 UTC) #11
tkent
On 2017/03/16 at 01:58:09, yoichio wrote: > On 2017/03/16 01:47:15, tkent wrote: > > Can ...
3 years, 9 months ago (2017-03-16 02:19:49 UTC) #12
tkent
lgtm
3 years, 9 months ago (2017-03-16 03:14:00 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2747113003/1
3 years, 9 months ago (2017-03-16 03:41:06 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 03:46:11 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/67a26dc6928cf5dac2f2f2242f24...

Powered by Google App Engine
This is Rietveld 408576698