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

Issue 657213004: ServiceWorker: Issue a warning after initial execution of worker script (Closed)

Created:
6 years, 2 months ago by shimazu
Modified:
6 years, 2 months ago
Reviewers:
kouhei (in TOK), horo
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, kinuko+worker_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

ServiceWorker: Issue a warning after initial execution of worker script This patch enables the inspector to issue a warning when developers add a event handler after an initial evaluation of the ServiceWorker script. BUG=401870 TEST=manually Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184227

Patch Set 1 #

Patch Set 2 : Add newline #

Total comments: 4

Patch Set 3 : Incorporate reviews #

Total comments: 6

Patch Set 4 : Incorporate reviews and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M Source/core/workers/WorkerGlobalScope.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/workers/WorkerGlobalScope.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.h View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
shimazu
horo@chromium.org: Please review changes under modules/serviceworer. kouhei@chromium.org: Please review changes under core.
6 years, 2 months ago (2014-10-22 07:00:13 UTC) #2
kouhei (in TOK)
https://codereview.chromium.org/657213004/diff/20001/Source/core/workers/WorkerGlobalScope.h File Source/core/workers/WorkerGlobalScope.h (right): https://codereview.chromium.org/657213004/diff/20001/Source/core/workers/WorkerGlobalScope.h#newcode97 Source/core/workers/WorkerGlobalScope.h:97: virtual void postInitialize() { }; Implement this in cpp ...
6 years, 2 months ago (2014-10-22 07:28:28 UTC) #3
shimazu
Thanks for your reviews! I modified this patch as we chatted offline. Please review again:) ...
6 years, 2 months ago (2014-10-22 08:33:56 UTC) #4
horo
lgtm with nit https://codereview.chromium.org/657213004/diff/40001/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h File Source/modules/serviceworkers/ServiceWorkerGlobalScope.h (right): https://codereview.chromium.org/657213004/diff/40001/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h#newcode60 Source/modules/serviceworkers/ServiceWorkerGlobalScope.h:60: // WorkerGlobalScope stopFetch() is also WorkerGlobalScope's ...
6 years, 2 months ago (2014-10-22 08:51:24 UTC) #5
kouhei (in TOK)
https://codereview.chromium.org/657213004/diff/40001/Source/core/workers/WorkerGlobalScope.h File Source/core/workers/WorkerGlobalScope.h (right): https://codereview.chromium.org/657213004/diff/40001/Source/core/workers/WorkerGlobalScope.h#newcode87 Source/core/workers/WorkerGlobalScope.h:87: virtual void didEvaluateWorkerScript(); Nit: above dispose(). https://codereview.chromium.org/657213004/diff/40001/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp File Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp ...
6 years, 2 months ago (2014-10-22 09:11:47 UTC) #6
kouhei (in TOK)
Comments optional. lgtm On 2014/10/22 09:11:47, kouhei wrote: > https://codereview.chromium.org/657213004/diff/40001/Source/core/workers/WorkerGlobalScope.h > File Source/core/workers/WorkerGlobalScope.h (right): > ...
6 years, 2 months ago (2014-10-22 09:12:10 UTC) #7
shimazu
I'll commit this patch. Thanks:) https://codereview.chromium.org/657213004/diff/40001/Source/core/workers/WorkerGlobalScope.h File Source/core/workers/WorkerGlobalScope.h (right): https://codereview.chromium.org/657213004/diff/40001/Source/core/workers/WorkerGlobalScope.h#newcode87 Source/core/workers/WorkerGlobalScope.h:87: virtual void didEvaluateWorkerScript(); On ...
6 years, 2 months ago (2014-10-23 00:52:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657213004/60001
6 years, 2 months ago (2014-10-23 00:53:19 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 02:04:51 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 184227

Powered by Google App Engine
This is Rietveld 408576698