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

Issue 2613893002: Remove an isContextInitialized() check from ScriptController::windowProxy() (Closed)

Created:
3 years, 11 months ago by haraken
Modified:
3 years, 11 months ago
Reviewers:
dcheng, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove an isContextInitialized() check from ScriptController::windowProxy() WindowProxy::initializeIfNeeded() is no-op when isContextInitialized() returns true. So we can remove the check from ScriptController::windowProxy() and unconditionally call WindowProxy::initializeIfNeeded(). This CL will cause a subtle change: Before this CL, dispatchDidClearWindowObjectInMainWorld was not called if WindowProxy gets initialized via WindowProxy::setGlobal. After this CL, dispatchDidClearWindowObjectInMainWorld will be called always when WindowProxy gets initialized. I don't think the difference matters (and I guess the new behavior will be more correct). BUG=677253 Review-Url: https://codereview.chromium.org/2613893002 Cr-Commit-Position: refs/heads/master@{#441908} Committed: https://chromium.googlesource.com/chromium/src/+/559b67fbc41fba740506cd5d6f3d20d20f65039b

Patch Set 1 #

Patch Set 2 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -5 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
haraken
PTAL
3 years, 11 months ago (2017-01-05 09:48:08 UTC) #2
Yuki
To me, it doesn't read correct to call dispatchDidClearWindowObjectInMainWorld when the WindowProxy was not initialized ...
3 years, 11 months ago (2017-01-05 10:19:50 UTC) #3
haraken
On 2017/01/05 10:19:50, Yuki wrote: > To me, it doesn't read correct to call dispatchDidClearWindowObjectInMainWorld ...
3 years, 11 months ago (2017-01-05 10:22:44 UTC) #5
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/2613893002/20001
3 years, 11 months ago (2017-01-05 10:23:06 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/358215)
3 years, 11 months ago (2017-01-05 13:41:37 UTC) #9
dcheng
On 2017/01/05 10:22:44, haraken wrote: > On 2017/01/05 10:19:50, Yuki wrote: > > To me, ...
3 years, 11 months ago (2017-01-06 02:41:44 UTC) #10
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/2613893002/20001
3 years, 11 months ago (2017-01-06 07:53:57 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 09:21:11 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/559b67fbc41fba740506cd5d6f3d...

Powered by Google App Engine
This is Rietveld 408576698