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

Issue 2153063003: Should not call FocusController::setFocusedFrame() for detached frame (Closed)

Created:
4 years, 5 months ago by kochi
Modified:
4 years, 5 months ago
Reviewers:
tkent, 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

Should not call FocusController::setFocusedFrame() for detached frame In case frame is detached, do not call setFocusedFrame() as it can't be focused. BUG=626750 TEST=LayoutTests/fast/dom/Selection/selection-crash.html Committed: https://crrev.com/f0bde6849797c7856ec8c4edadf3b4572c3261f5 Cr-Commit-Position: refs/heads/master@{#407019}

Patch Set 1 #

Total comments: 4

Patch Set 2 : update for comments #

Patch Set 3 : Proposed fix #3 #

Total comments: 16

Patch Set 4 : fix for comment #20 #

Total comments: 3

Patch Set 5 : fix for comment #26 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (26 generated)
kochi
PTAL
4 years, 5 months ago (2016-07-15 10:56:02 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2153063003/diff/1/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html File third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html (right): https://codereview.chromium.org/2153063003/diff/1/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html#newcode10 third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html:10: test(() => {}, "test did not crash."); We should ...
4 years, 5 months ago (2016-07-19 01:44:47 UTC) #8
kochi
Looks like the proposed fix broke site-per-process browser tests. Let me take further look.
4 years, 5 months ago (2016-07-19 23:23:49 UTC) #13
kochi
PTAL https://codereview.chromium.org/2153063003/diff/1/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html File third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html (right): https://codereview.chromium.org/2153063003/diff/1/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html#newcode10 third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html:10: test(() => {}, "test did not crash."); On ...
4 years, 5 months ago (2016-07-20 08:05:27 UTC) #18
kochi
Ping, could you take a look?
4 years, 5 months ago (2016-07-21 05:11:29 UTC) #19
yosin_UTC9
Please add TEST=LayoutTests/fast/dom/Selection/selection-crash.html in description. https://codereview.chromium.org/2153063003/diff/30003/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html File third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html (right): https://codereview.chromium.org/2153063003/diff/30003/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html#newcode11 third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html:11: }, false); nit: Since ...
4 years, 5 months ago (2016-07-21 06:10:10 UTC) #20
kochi
PTAL (could you answer my question why document.activeElement check makes sense?) https://codereview.chromium.org/2153063003/diff/30003/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html File third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html (right): ...
4 years, 5 months ago (2016-07-21 06:55:27 UTC) #24
yosin_UTC9
https://codereview.chromium.org/2153063003/diff/30003/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html File third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html (right): https://codereview.chromium.org/2153063003/diff/30003/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html#newcode16 third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html:16: assert_true(true, "Test did not crash."); On 2016/07/21 at 06:55:26, ...
4 years, 5 months ago (2016-07-21 07:22:36 UTC) #25
yosin_UTC9
https://codereview.chromium.org/2153063003/diff/50001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2153063003/diff/50001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1126 third_party/WebKit/Source/core/page/FocusController.cpp:1126: if (localFrame->selection().isAvailable()) On 2016/07/21 at 07:22:36, Yosi_UTC9 wrote: > ...
4 years, 5 months ago (2016-07-21 07:30:28 UTC) #26
kochi
PTAL https://codereview.chromium.org/2153063003/diff/30003/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html File third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html (right): https://codereview.chromium.org/2153063003/diff/30003/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html#newcode16 third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html:16: assert_true(true, "Test did not crash."); On 2016/07/21 07:22:36, ...
4 years, 5 months ago (2016-07-21 09:00:33 UTC) #29
yosin_UTC9
lgtm
4 years, 5 months ago (2016-07-21 09:08:26 UTC) #30
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/2153063003/70001
4 years, 5 months ago (2016-07-21 09:28:10 UTC) #33
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/222213)
4 years, 5 months ago (2016-07-21 09:33:34 UTC) #35
kochi
tkent-san, could you review this for OWNERS?
4 years, 5 months ago (2016-07-21 09:53:55 UTC) #37
tkent
lgtm
4 years, 5 months ago (2016-07-22 00:13:26 UTC) #38
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/2153063003/70001
4 years, 5 months ago (2016-07-22 01:30:32 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 5 months ago (2016-07-22 03:24:20 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 03:27:26 UTC) #44
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f0bde6849797c7856ec8c4edadf3b4572c3261f5
Cr-Commit-Position: refs/heads/master@{#407019}

Powered by Google App Engine
This is Rietveld 408576698