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

Issue 2706913003: FrameView can be null in addTextMatchMaker() after appendChild(iframe) (Closed)

Created:
3 years, 10 months ago by hiroshige
Modified:
3 years, 10 months ago
Reviewers:
tkent, blink-reviews-dom, yosin_UTC9, Xianzhu
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, loading-reviews+fetch_chromium.org, loading-reviews_chromium.org, rwlbuis, sof, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FrameView can be null in addTextMatchMaker() after appendChild(iframe) Range's owner document's FrameView can be cleared after the iframe to which the range belongs to is appendChild()ed. This CL fixes Internals::addTextMatchMarker() to handle such cases. BUG=693848 Review-Url: https://codereview.chromium.org/2706913003 Cr-Commit-Position: refs/heads/master@{#451929} Committed: https://chromium.googlesource.com/chromium/src/+/68ca487c1e84a61cbcf3995637376d45bc1ff01b

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : remove tests #

Patch Set 4 : Early return #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (15 generated)
hiroshige
Could you take a look: wangxianzhu@ as the reviewer of https://codereview.chromium.org/2450793002 that introduced the crashing ...
3 years, 10 months ago (2017-02-21 22:53:19 UTC) #6
Xianzhu
LGTM. I ever marked several similar bugs WontFix. In real world addTextMatchMaker is never called ...
3 years, 10 months ago (2017-02-21 22:57:25 UTC) #7
tkent
> tkent@ yosin@, could you check whether anything wrong occurs outside blink::Internals? > Is this ...
3 years, 10 months ago (2017-02-21 23:19:45 UTC) #8
yosin_UTC9
Thanks for fixing this! https://codereview.chromium.org/2706913003/diff/20001/third_party/WebKit/Source/core/testing/Internals.cpp File third_party/WebKit/Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/2706913003/diff/20001/third_party/WebKit/Source/core/testing/Internals.cpp#newcode1050 third_party/WebKit/Source/core/testing/Internals.cpp:1050: if (range->ownerDocument().view()) Could you do ...
3 years, 10 months ago (2017-02-21 23:24:17 UTC) #9
hiroshige
Thanks for reviewing! Removed the test according to the review comment.
3 years, 10 months ago (2017-02-21 23:26:17 UTC) #10
hiroshige
https://codereview.chromium.org/2706913003/diff/20001/third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html File third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html (right): https://codereview.chromium.org/2706913003/diff/20001/third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html#newcode1 third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html:1: <script src="../../resources/js-test.js"></script> On 2017/02/21 23:19:44, tkent wrote: > Please ...
3 years, 10 months ago (2017-02-21 23:29:57 UTC) #11
tkent
lgtm
3 years, 10 months ago (2017-02-21 23:32:00 UTC) #12
yosin_UTC9
lgtm Thanks!
3 years, 10 months ago (2017-02-21 23:43:28 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/2706913003/60001
3 years, 10 months ago (2017-02-21 23:52:42 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
3 years, 10 months ago (2017-02-22 01:55:56 UTC) #18
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/2706913003/60001
3 years, 10 months ago (2017-02-22 02:24:15 UTC) #20
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/2706913003/60001
3 years, 10 months ago (2017-02-22 03:28:17 UTC) #23
commit-bot: I haz the power
Exceeded global retry quota
3 years, 10 months ago (2017-02-22 04:26:21 UTC) #25
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/2706913003/60001
3 years, 10 months ago (2017-02-22 06:40:25 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 08:30:06 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/68ca487c1e84a61cbcf399563737...

Powered by Google App Engine
This is Rietveld 408576698