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

Issue 2854853006: Simplify FrameLoader::Clear(), remove FrameLoader::check_timer_ (Closed)

Created:
3 years, 7 months ago by Nate Chapin
Modified:
3 years, 7 months ago
Reviewers:
dcheng
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify FrameLoader::Clear(), remove FrameLoader::check_timer_ Clear() is full of strange, old logic. Several clauses are outright unnecessary, or have better-encapsulated homes. check_timer_ appears to have two uses, one of which is vestigial, the other of which can be better-situated to not require a timer. BUG= Review-Url: https://codereview.chromium.org/2854853006 Cr-Commit-Position: refs/heads/master@{#469774} Committed: https://chromium.googlesource.com/chromium/src/+/2081f48578f7d6ff49d468a76e471f2b90f78178

Patch Set 1 #

Patch Set 2 : Move EnableEval(), remove unneeded(?) Clear() calls #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -37 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptController.h View 1 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 3 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 7 chunks +1 line, -31 lines 6 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (14 generated)
Nate Chapin
dcheng, what do you think of this? https://codereview.chromium.org/2854853006/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (left): https://codereview.chromium.org/2854853006/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#oldcode308 third_party/WebKit/Source/core/loader/FrameLoader.cpp:308: ScheduleCheckCompleted(); This ...
3 years, 7 months ago (2017-05-04 19:53:12 UTC) #10
dcheng
https://codereview.chromium.org/2854853006/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (left): https://codereview.chromium.org/2854853006/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#oldcode1214 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1214: ToLocalFrame(parent)->Loader().ScheduleCheckCompleted(); On 2017/05/04 19:53:12, Nate Chapin wrote: > Instead ...
3 years, 7 months ago (2017-05-05 06:12:31 UTC) #13
Nate Chapin
On 2017/05/05 06:12:31, dcheng wrote: > https://codereview.chromium.org/2854853006/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp > File third_party/WebKit/Source/core/loader/FrameLoader.cpp (left): > > https://codereview.chromium.org/2854853006/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#oldcode1214 > ...
3 years, 7 months ago (2017-05-05 16:49:14 UTC) #14
dcheng
LGTM We might want to fix the completion check logic in a followup though.
3 years, 7 months ago (2017-05-05 18:20:34 UTC) #15
Nate Chapin
On 2017/05/05 18:20:34, dcheng wrote: > LGTM > > We might want to fix the ...
3 years, 7 months ago (2017-05-05 18:43:24 UTC) #16
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/2854853006/20001
3 years, 7 months ago (2017-05-05 18:44:57 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/2081f48578f7d6ff49d468a76e471f2b90f78178
3 years, 7 months ago (2017-05-05 22:09:27 UTC) #21
Nate Chapin
3 years, 7 months ago (2017-05-08 18:05:59 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2871703002/ by japhet@chromium.org.

The reason for reverting is: Moving CheckCompleted() call to
HTMLFrameOwnerElement::ClearContentFrame() appears to be causing script to run
in a ScriptForbiddenScope. See crbug.com/719397.

Powered by Google App Engine
This is Rietveld 408576698