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

Issue 1793093006: [Editing][Stability] Recanonicalize m_originalbase in FrameSelection (Closed)

Created:
4 years, 9 months ago by yoichio
Modified:
4 years, 7 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Editing][Stability] Recanonicalize m_originalbase in FrameSelection The crash issue 562339 is caused in computeInlineBoxPositionTemplate called in the RenderPosition constructor. The root issue is FrameSelection::setNonDirectionalSelectionIfNeededAlgorithm uses m_originalBase as up-to-date. m_originBase is used only in the function. However, there can be layout by next call. Thus this CL recanonicalizes m_originalBase. BUG=562339, 593592 Committed: https://crrev.com/1c6aad352c275e7965fb4f32cebcdf5b261af704 Cr-Commit-Position: refs/heads/master@{#393483}

Patch Set 1 #

Total comments: 1

Patch Set 2 : update #

Total comments: 10

Patch Set 3 : update layout test #

Total comments: 6

Patch Set 4 : update test #

Total comments: 4

Patch Set 5 : nit pick #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
yoichio
4 years, 9 months ago (2016-03-15 04:58:24 UTC) #3
yosin_UTC9
https://codereview.chromium.org/1793093006/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/1793093006/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1930 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1930: if (!layoutObject) We should assume |computeInlineBoxPosition()| called with valid ...
4 years, 9 months ago (2016-03-15 06:20:41 UTC) #4
yoichio
On 2016/03/15 06:20:41, Yosi_UTC9 wrote: > https://codereview.chromium.org/1793093006/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp > File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): > > https://codereview.chromium.org/1793093006/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1930 > ...
4 years, 8 months ago (2016-04-19 04:38:39 UTC) #9
yosin_UTC9
C++ changes are fine. https://codereview.chromium.org/1793093006/diff/60001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html File third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html (right): https://codereview.chromium.org/1793093006/diff/60001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html#newcode5 third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html:5: var __v_40 = 0; ++__v_40 ...
4 years, 8 months ago (2016-04-19 06:04:04 UTC) #10
yoichio
https://codereview.chromium.org/1793093006/diff/60001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html File third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html (right): https://codereview.chromium.org/1793093006/diff/60001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html#newcode5 third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html:5: var __v_40 = 0; ++__v_40 {__v_40: "ab" + __v_40 ...
4 years, 8 months ago (2016-04-19 08:47:20 UTC) #11
yosin_UTC9
https://codereview.chromium.org/1793093006/diff/80001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html File third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html (right): https://codereview.chromium.org/1793093006/diff/80001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html#newcode4 third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html:4: <div style="direction: rtl;"> <div dir=rtl> https://codereview.chromium.org/1793093006/diff/80001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html#newcode5 third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html:5: __v_40 = ...
4 years, 8 months ago (2016-04-19 09:41:20 UTC) #12
yoichio
https://codereview.chromium.org/1793093006/diff/80001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html File third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html (right): https://codereview.chromium.org/1793093006/diff/80001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html#newcode4 third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html:4: <div style="direction: rtl;"> On 2016/04/19 09:41:20, Yosi_UTC9 wrote: > ...
4 years, 7 months ago (2016-05-13 04:03:29 UTC) #13
yosin_UTC9
lgtm w/ small nits https://codereview.chromium.org/1793093006/diff/100001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html File third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html (right): https://codereview.chromium.org/1793093006/diff/100001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html#newcode8 third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html:8: var y = target.offsetTop + ...
4 years, 7 months ago (2016-05-13 05:09:21 UTC) #14
yoichio
https://codereview.chromium.org/1793093006/diff/100001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html File third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html (right): https://codereview.chromium.org/1793093006/diff/100001/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html#newcode8 third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html:8: var y = target.offsetTop + target.offsetHeight / 2; On ...
4 years, 7 months ago (2016-05-13 07:49:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1793093006/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1793093006/120001
4 years, 7 months ago (2016-05-13 07:49:38 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 7 months ago (2016-05-13 09:02:11 UTC) #20
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/1c6aad352c275e7965fb4f32cebcdf5b261af704 Cr-Commit-Position: refs/heads/master@{#393483}
4 years, 7 months ago (2016-05-13 09:03:35 UTC) #22
vasilii
4 years, 7 months ago (2016-05-13 12:16:22 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:120001) has been created in
https://codereview.chromium.org/1971393003/ by vasilii@chromium.org.

The reason for reverting is: Causes unexpected leak reliably
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Leak/b...

02:43:31.446 20471 worker/6
editing/selection/mouse/drag_selection_update_crash.html leaked
02:43:31.447 20404 [15652/40740]
editing/selection/mouse/drag_selection_update_crash.html failed unexpectedly
(leak detected:
({"numberOfLiveActiveDOMObjects":[2,4],"numberOfLiveDocuments":[1,2],"numberOfLiveNodes":[4,18],"numberOfLiveResources":[0,2]}))
02:43:31.446 20471 worker/6
editing/selection/mouse/drag_selection_update_crash.html failed:
02:43:31.446 20471 worker/6  leak detected:
({"numberOfLiveActiveDOMObjects":[2,4],"numberOfLiveDocuments":[1,2],"numberOfLiveNodes":[4,18],"numberOfLiveResources":[0,2]}).

Powered by Google App Engine
This is Rietveld 408576698