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

Issue 2869203002: Cleanup around LocalFrame initialization (Closed)

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

Description

Cleanup around LocalFrame initialization * Add a ScriptForbiddenScope to FrameLoader::Init(), since script shouldn't ever run in Init(). Simplify some callers of Init() that assume Init() might detach the frame. * Use WebLocalFrameImpl::InitializeCoreFrame in CreateProvisional(), resolving a FIXME there. BUG= Review-Url: https://codereview.chromium.org/2869203002 Cr-Commit-Position: refs/heads/master@{#472173} Committed: https://chromium.googlesource.com/chromium/src/+/21bb521df1e2e311b05b07819b43e42a5db5c402

Patch Set 1 #

Patch Set 2 : Use InitializeCoreFrame() in CreateProvisional() #

Total comments: 11

Patch Set 3 : Address dcheng's comments #

Patch Set 4 : Remove some more obsolete code/comemnts in FrameLoader::Init #

Patch Set 5 : +test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -62 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/multiple-report-policies-expected.txt View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 2 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 chunks +32 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
Nate Chapin
https://codereview.chromium.org/2869203002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (left): https://codereview.chromium.org/2869203002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#oldcode1563 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:1563: // TODO(dcheng): This block is very similar to initializeCoreFrame. ...
3 years, 7 months ago (2017-05-10 16:33:20 UTC) #8
Nate Chapin
dcheng, what do you think of this?
3 years, 7 months ago (2017-05-11 21:23:54 UTC) #10
dcheng
https://codereview.chromium.org/2869203002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (left): https://codereview.chromium.org/2869203002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#oldcode1563 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:1563: // TODO(dcheng): This block is very similar to initializeCoreFrame. ...
3 years, 7 months ago (2017-05-11 21:36:25 UTC) #11
dcheng
Actually I thought about this a bit more, and I don't think there's any time ...
3 years, 7 months ago (2017-05-12 15:54:41 UTC) #12
dcheng
https://codereview.chromium.org/2869203002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (left): https://codereview.chromium.org/2869203002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#oldcode1563 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:1563: // TODO(dcheng): This block is very similar to initializeCoreFrame. ...
3 years, 7 months ago (2017-05-12 18:06:39 UTC) #14
Nate Chapin
https://codereview.chromium.org/2869203002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (left): https://codereview.chromium.org/2869203002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#oldcode1563 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:1563: // TODO(dcheng): This block is very similar to initializeCoreFrame. ...
3 years, 7 months ago (2017-05-12 19:52:29 UTC) #15
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/2869203002/40001
3 years, 7 months ago (2017-05-12 19:53:22 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/267172) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-05-12 19:55:38 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/2869203002/40001
3 years, 7 months ago (2017-05-12 20:19:53 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/452535)
3 years, 7 months ago (2017-05-12 21:48:01 UTC) #24
alexmos
Can we also run this through linux_site_isolation, just to be sure that layout tests don't ...
3 years, 7 months ago (2017-05-12 22:10:50 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/2869203002/80001
3 years, 7 months ago (2017-05-15 22:49:39 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/455135)
3 years, 7 months ago (2017-05-16 00:47:11 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/2869203002/80001
3 years, 7 months ago (2017-05-16 16:46:09 UTC) #32
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 18:38:23 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/21bb521df1e2e311b05b07819b43...

Powered by Google App Engine
This is Rietveld 408576698