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

Issue 2727293003: [InputEvent] Add null check before converting Range to StaticRange (Closed)

Created:
3 years, 9 months ago by chongz
Modified:
3 years, 9 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[InputEvent] Add null check before converting Range to StaticRange It's possible for |firstRangeOf()| to return null (see test case), and we shouldn't try to construct StaticRange in this case. BUG=697319 Review-Url: https://codereview.chromium.org/2727293003 Cr-Commit-Position: refs/heads/master@{#454614} Committed: https://chromium.googlesource.com/chromium/src/+/b05824d69f2a8403552ef9e29bebdece24005400

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-invalid-selection-crash.html View 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
chongz
yosin@ PTAL, thanks!
3 years, 9 months ago (2017-03-03 01:56:31 UTC) #8
yosin_UTC9
lgtm https://codereview.chromium.org/2727293003/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2727293003/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode2075 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:2075: Range* range = We would like to do ...
3 years, 9 months ago (2017-03-03 05:11:50 UTC) #9
chongz
https://codereview.chromium.org/2727293003/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2727293003/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode2075 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:2075: Range* range = On 2017/03/03 05:11:50, yosin_UTC9 wrote: > ...
3 years, 9 months ago (2017-03-03 15:53:50 UTC) #10
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/2727293003/1
3 years, 9 months ago (2017-03-03 15:54:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/377823)
3 years, 9 months ago (2017-03-03 16:00:48 UTC) #14
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/2727293003/20001
3 years, 9 months ago (2017-03-03 16:22:25 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 17:47:17 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b05824d69f2a8403552ef9e29beb...

Powered by Google App Engine
This is Rietveld 408576698