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

Issue 2337003002: Worker: Notify WorkerThread lifecycle events via WorkerReportingProxy (Closed)

Created:
4 years, 3 months ago by nhiroki
Modified:
4 years, 3 months ago
Reviewers:
falken, haraken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shans, rjwright, shimazu+serviceworker_chromium.org, blink-reviews-animation_chromium.org, serviceworker-reviews, nhiroki, shimazu+worker_chromium.org, falken, kinuko+worker_chromium.org, kinuko+serviceworker, darktears, blink-reviews, horo+watch_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Notify WorkerThread lifecycle events via WorkerReportingProxy Before this CL, script loading and evaluation are directly notified to WorkerGlobalScope. After this CL, they are notified via WorkerReportingProxy that is a proper route. BUG=519111, 640843 Committed: https://crrev.com/ac6098db746f5939263b51863df6f061f0ebdb76 Cr-Commit-Position: refs/heads/master@{#418230}

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix comment #

Patch Set 3 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -58 lines) Patch
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerReportingProxy.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 2 chunks +9 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 8 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 6 chunks +16 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
nhiroki
PTAL, thanks! https://codereview.chromium.org/2337003002/diff/1/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (left): https://codereview.chromium.org/2337003002/diff/1/third_party/WebKit/Source/core/workers/WorkerThread.cpp#oldcode530 third_party/WebKit/Source/core/workers/WorkerThread.cpp:530: if (!scriptController->isExecutionForbidden()) { isExecutionForbidden() always returns false ...
4 years, 3 months ago (2016-09-13 06:35:49 UTC) #7
falken
https://codereview.chromium.org/2337003002/diff/1/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h File third_party/WebKit/Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/2337003002/diff/1/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h#newcode55 third_party/WebKit/Source/core/workers/WorkerReportingProxy.h:55: // Invoked when the worker script or imported script ...
4 years, 3 months ago (2016-09-13 06:51:11 UTC) #8
falken
on second thought that could be a followup patch. this lgtm
4 years, 3 months ago (2016-09-13 06:52:10 UTC) #9
nhiroki
Thank you! https://codereview.chromium.org/2337003002/diff/1/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h File third_party/WebKit/Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/2337003002/diff/1/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h#newcode55 third_party/WebKit/Source/core/workers/WorkerReportingProxy.h:55: // Invoked when the worker script or ...
4 years, 3 months ago (2016-09-13 07:06:46 UTC) #10
nhiroki
+haraken@, can you review Source/web/*? Thanks.
4 years, 3 months ago (2016-09-13 07:07:05 UTC) #14
haraken
On 2016/09/13 07:07:05, nhiroki wrote: > +haraken@, can you review Source/web/*? Thanks. LGTM
4 years, 3 months ago (2016-09-13 07:49:26 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/2337003002/20001
4 years, 3 months ago (2016-09-13 07:50:20 UTC) #19
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/296510)
4 years, 3 months ago (2016-09-13 08:25:56 UTC) #21
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/2337003002/40001
4 years, 3 months ago (2016-09-13 12:24:21 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-13 13:48:34 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 13:50:24 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ac6098db746f5939263b51863df6f061f0ebdb76
Cr-Commit-Position: refs/heads/master@{#418230}

Powered by Google App Engine
This is Rietveld 408576698