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

Issue 2608163009: Remove ScriptController::updateDocument (Closed)

Created:
3 years, 11 months ago by haraken
Modified:
3 years, 11 months ago
Reviewers:
dcheng, Yuki
CC:
chromium-reviews, tyoshino+watch_chromium.org, loading-reviews_chromium.org, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, blink-reviews, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove ScriptController::initializeMainWorld ScriptController::updateDocument is unnecessarily complicated. Assuming that ScriptController::updateDocument is never called after the context is detached (I added a dcheck to verify the fact in WindowProxy::updateDocument()), we can simplify ScriptController::updateDocument. It also enables us to remove ScriptController::initializeMainWorld. BUG=677253 Review-Url: https://codereview.chromium.org/2608163009 Cr-Commit-Position: refs/heads/master@{#441896} Committed: https://chromium.googlesource.com/chromium/src/+/40458d4dd913d5fd6f4f1bb2da083a8a7136a9af

Patch Set 1 #

Total comments: 4

Patch Set 2 : temp #

Patch Set 3 : temp #

Patch Set 4 : temp #

Total comments: 5

Patch Set 5 : temp #

Patch Set 6 : temp #

Patch Set 7 : temp #

Patch Set 8 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -17 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptController.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp View 1 2 3 4 5 6 7 2 chunks +1 line, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/Page.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 45 (22 generated)
haraken
PTAL
3 years, 11 months ago (2017-01-05 11:18:25 UTC) #2
Yuki
https://codereview.chromium.org/2608163009/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/2608163009/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#newcode308 third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp:308: } Do we really need the below code? If ...
3 years, 11 months ago (2017-01-05 12:10:06 UTC) #3
haraken
On 2017/01/05 12:10:06, Yuki wrote: > https://codereview.chromium.org/2608163009/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp > File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (right): > > https://codereview.chromium.org/2608163009/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#newcode308 > ...
3 years, 11 months ago (2017-01-05 12:35:07 UTC) #5
haraken
(Updated the CL as discussed offline.)
3 years, 11 months ago (2017-01-05 13:05:24 UTC) #6
Yuki
LGTM. https://codereview.chromium.org/2608163009/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (left): https://codereview.chromium.org/2608163009/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#oldcode307 third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp:307: // context initialization. I think this comment was ...
3 years, 11 months ago (2017-01-05 13:21:26 UTC) #7
dcheng
https://codereview.chromium.org/2608163009/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (left): https://codereview.chromium.org/2608163009/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#oldcode308 third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp:308: if (!m_windowProxyManager->mainWorldProxy()->isGlobalInitialized()) Note this is the only caller to ...
3 years, 11 months ago (2017-01-05 16:20:32 UTC) #9
haraken
https://codereview.chromium.org/2608163009/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (left): https://codereview.chromium.org/2608163009/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#oldcode307 third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp:307: // context initialization. On 2017/01/05 13:21:26, Yuki wrote: > ...
3 years, 11 months ago (2017-01-05 23:46:19 UTC) #10
haraken
On 2017/01/05 16:20:32, dcheng wrote: > https://codereview.chromium.org/2608163009/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp > File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (left): > > https://codereview.chromium.org/2608163009/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#oldcode308 > ...
3 years, 11 months ago (2017-01-05 23:47:18 UTC) #11
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/2608163009/80001
3 years, 11 months ago (2017-01-05 23:47:54 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/131045) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-05 23:51:10 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/2608163009/100001
3 years, 11 months ago (2017-01-05 23:58:12 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/286512)
3 years, 11 months ago (2017-01-06 00:48:36 UTC) #21
haraken
I noticed that some browser tests are calling updateDocument for a detached window proxy. We're ...
3 years, 11 months ago (2017-01-06 00:55:18 UTC) #22
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/2608163009/120001
3 years, 11 months ago (2017-01-06 00:56:18 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/343231)
3 years, 11 months ago (2017-01-06 02:46:09 UTC) #27
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/2608163009/120001
3 years, 11 months ago (2017-01-06 02:47:00 UTC) #29
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-06 03:25:50 UTC) #31
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/2608163009/140001
3 years, 11 months ago (2017-01-06 03:32:43 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/343328)
3 years, 11 months ago (2017-01-06 05:01:28 UTC) #36
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/2608163009/140001
3 years, 11 months ago (2017-01-06 05:02:17 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/343384)
3 years, 11 months ago (2017-01-06 06:34:12 UTC) #40
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/2608163009/140001
3 years, 11 months ago (2017-01-06 06:36:35 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 07:10:19 UTC) #45
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/40458d4dd913d5fd6f4f1bb2da08...

Powered by Google App Engine
This is Rietveld 408576698