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

Issue 1864623004: messageHandlerInMainThread should return immediately if there is no entered window (Closed)

Created:
4 years, 8 months ago by haraken
Modified:
4 years, 8 months ago
Reviewers:
Charlie Harrison, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

messageHandlerInMainThread should return immediately if there is no entered window messageHandlerInMainThread should return immediately if there is no entered window. To that end, messageHandlerInMainThread already has an 'if (!enteredWindow || ...) return' branch, but the branch never hits because enteredDOMWindow() crashes if there is no entered or current window. This CL stops calling enteredDOMWindow() so that messageHandlerInMainThread can return immediately if there is no entered window. BUG=599115 Committed: https://crrev.com/b17f26e5db7fcb32d8a771048ca994f4bd4ce77e Cr-Commit-Position: refs/heads/master@{#385524}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

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

Messages

Total messages: 25 (11 generated)
haraken
PTAL
4 years, 8 months ago (2016-04-06 04:25:28 UTC) #2
haraken
yukishiino: PTAL
4 years, 8 months ago (2016-04-06 09:34:46 UTC) #4
Yuki
LGTM. https://codereview.chromium.org/1864623004/diff/1/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/1864623004/diff/1/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode140 third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:140: LocalDOMWindow* enteredWindow = toLocalDOMWindow(toDOMWindow(isolate->GetEnteredContext())); Maybe better to add ...
4 years, 8 months ago (2016-04-06 10:30:14 UTC) #5
haraken
https://codereview.chromium.org/1864623004/diff/1/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/1864623004/diff/1/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode140 third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:140: LocalDOMWindow* enteredWindow = toLocalDOMWindow(toDOMWindow(isolate->GetEnteredContext())); On 2016/04/06 10:30:14, Yuki wrote: ...
4 years, 8 months ago (2016-04-06 11:11:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864623004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864623004/20001
4 years, 8 months ago (2016-04-06 11:11:46 UTC) #9
Charlie Harrison
Thanks for this change!
4 years, 8 months ago (2016-04-06 12:30:29 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/200396)
4 years, 8 months ago (2016-04-06 15:17:07 UTC) #12
Charlie Harrison
lgtm Failures look like potential flakes. Retrying.
4 years, 8 months ago (2016-04-06 16:15:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864623004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864623004/20001
4 years, 8 months ago (2016-04-06 16:16:20 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864623004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864623004/20001
4 years, 8 months ago (2016-04-06 16:17:16 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 19:29:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864623004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864623004/20001
4 years, 8 months ago (2016-04-06 19:35:14 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-06 19:41:07 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 19:42:12 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b17f26e5db7fcb32d8a771048ca994f4bd4ce77e
Cr-Commit-Position: refs/heads/master@{#385524}

Powered by Google App Engine
This is Rietveld 408576698