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

Issue 2920583003: Stop crashing when VisibleSelections in DOM and Flat trees are inconsistent (Closed)

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

Description

Stop crashing when VisibleSelections in DOM and Flat trees are inconsistent There are some cases where FrameSelection::ComputeVisibleSelectionInDOMTree() and FrameSelection::ComputeVisibleSelectionInFlatTree() return inconsistent results, with one being null and another being non-null. This is unexpected and causes crashes in some cases. This patch stops the crash in FrameSelection::SelectionHasFocus() due to this inconsistency. It doesn't fix the root cause, though, as the inconsistency is still there. It is made small to be merged to M60. BUG=725457 TEST=FrameSelectionTest.InconsistentVisibleSelectionNoCrash Review-Url: https://codereview.chromium.org/2920583003 Cr-Commit-Position: refs/heads/master@{#477144} Committed: https://chromium.googlesource.com/chromium/src/+/0cb66cf7b8cbc857c590ca5499f0ad6828684702

Patch Set 1 #

Patch Set 2 : Mon Jun 5 11:40:52 PDT 2017 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -7 lines) Patch
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 2 chunks +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (22 generated)
Xiaocheng
PTAL.
3 years, 6 months ago (2017-06-01 00:41:02 UTC) #3
yosin_UTC9
On 2017/06/01 at 00:41:02, xiaochengh wrote: > PTAL. Could you wait next two weeks for ...
3 years, 6 months ago (2017-06-01 01:11:03 UTC) #7
yosin_UTC9
On 2017/06/01 at 01:11:03, yosin_UTC9 wrote: > On 2017/06/01 at 00:41:02, xiaochengh wrote: > > ...
3 years, 6 months ago (2017-06-01 01:13:12 UTC) #8
Xiaocheng
On 2017/06/01 at 01:13:12, yosin wrote: > On 2017/06/01 at 01:11:03, yosin_UTC9 wrote: > > ...
3 years, 6 months ago (2017-06-02 00:35:51 UTC) #11
yosin_UTC9
On 2017/06/02 at 00:35:51, xiaochengh wrote: > On 2017/06/01 at 01:13:12, yosin wrote: > > ...
3 years, 6 months ago (2017-06-02 01:27:53 UTC) #12
Xiaocheng
On 2017/06/02 at 01:27:53, yosin wrote: > On 2017/06/02 at 00:35:51, xiaochengh wrote: > > ...
3 years, 6 months ago (2017-06-02 01:48:58 UTC) #15
yosin_UTC9
On 2017/06/02 at 01:48:58, xiaochengh wrote: > On 2017/06/02 at 01:27:53, yosin wrote: > > ...
3 years, 6 months ago (2017-06-02 02:12:42 UTC) #16
yosin_UTC9
On 2017/06/02 at 02:12:42, yosin_UTC9 wrote: > On 2017/06/02 at 01:48:58, xiaochengh wrote: > > ...
3 years, 6 months ago (2017-06-02 05:07:37 UTC) #17
Xiaocheng
Thanks for the idea. It indeed seems more reasonable to canonicalize such an invalid position ...
3 years, 6 months ago (2017-06-02 05:29:30 UTC) #18
yosin_UTC9
On 2017/06/02 at 05:29:30, xiaochengh wrote: > Thanks for the idea. It indeed seems more ...
3 years, 6 months ago (2017-06-02 08:59:11 UTC) #19
yosin_UTC9
On 2017/06/02 at 08:59:11, yosin_UTC9 wrote: > On 2017/06/02 at 05:29:30, xiaochengh wrote: > > ...
3 years, 6 months ago (2017-06-02 13:33:09 UTC) #20
Xiaocheng
Let me try to summarize. We have two approaches: 1. Fix the root cause that, ...
3 years, 6 months ago (2017-06-05 05:52:07 UTC) #21
yosin_UTC9
On 2017/06/05 at 05:52:07, xiaochengh wrote: > Let me try to summarize. > > We ...
3 years, 6 months ago (2017-06-05 07:04:33 UTC) #22
Xiaocheng
Updated. PTAL.
3 years, 6 months ago (2017-06-05 19:36:58 UTC) #27
yosin_UTC9
lgtm
3 years, 6 months ago (2017-06-06 01:11:57 UTC) #35
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/2920583003/20001
3 years, 6 months ago (2017-06-06 01:12:33 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 01:18:03 UTC) #39
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0cb66cf7b8cbc857c590ca5499f0...

Powered by Google App Engine
This is Rietveld 408576698