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

Issue 692003002: ServiceWorker: Registering a malformed script should fail [1/3] (Closed)

Created:
6 years, 1 month ago by nhiroki
Modified:
6 years, 1 month ago
Reviewers:
falken, haraken, yhirano, tkent
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, falken, dglazkov+blink, 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: Registering a malformed script should fail [1/3] Before this series of patches, registration succeeds even if the worker script has a syntax error because the installing sequence does not check the result of the script evaluation. To enable the installing sequence to wait for the script evaluation, this adds WorkerReportingProxy::didEvaluteWorkerScript() to be called when the evaluation is completed and to propagate the result up to the Chromium-side. Patch dependency: [1] Blink: THIS PATCH [2] Chromium: https://codereview.chromium.org/697593002/ [3] Blink: https://codereview.chromium.org/697833004/ BUG=426344 TEST=compile (test will be added by [3]) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184854

Patch Set 1 : #

Total comments: 6

Patch Set 2 : address falken@'s comments #

Total comments: 4

Patch Set 3 : address tkent@'s comments #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -6 lines) Patch
M Source/bindings/core/v8/WorkerScriptController.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/core/v8/WorkerScriptController.cpp View 3 chunks +5 lines, -3 lines 0 comments Download
M Source/core/workers/WorkerObjectProxy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/workers/WorkerReportingProxy.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/WebSharedWorkerImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebServiceWorkerContextClient.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
nhiroki
Hi, can you review this?
6 years, 1 month ago (2014-11-04 04:03:13 UTC) #7
falken
looks good What happens with a worker that does while(1) {}? I guess register job ...
6 years, 1 month ago (2014-11-04 05:41:26 UTC) #8
nhiroki
Thank you for reviewing! Updated. https://codereview.chromium.org/692003002/diff/80001/Source/core/workers/WorkerReportingProxy.h File Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/692003002/diff/80001/Source/core/workers/WorkerReportingProxy.h#newcode43 Source/core/workers/WorkerReportingProxy.h:43: // APIs used by ...
6 years, 1 month ago (2014-11-04 09:03:12 UTC) #9
nhiroki
On 2014/11/04 05:41:26, falken wrote: > looks good > > What happens with a worker ...
6 years, 1 month ago (2014-11-04 09:06:45 UTC) #10
falken
LGTM
6 years, 1 month ago (2014-11-05 01:47:24 UTC) #11
nhiroki
+tkent@, can you review this? (especially, public/web/WebServiceWorkerContextClient.h)
6 years, 1 month ago (2014-11-05 02:00:35 UTC) #13
tkent
https://codereview.chromium.org/692003002/diff/100001/Source/core/workers/WorkerReportingProxy.h File Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/692003002/diff/100001/Source/core/workers/WorkerReportingProxy.h#newcode54 Source/core/workers/WorkerReportingProxy.h:54: virtual void workerScriptEvaluated(bool success) = 0; Please name this ...
6 years, 1 month ago (2014-11-05 02:10:22 UTC) #14
nhiroki
Thank you for reviewing. Updated. https://codereview.chromium.org/692003002/diff/100001/Source/core/workers/WorkerReportingProxy.h File Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/692003002/diff/100001/Source/core/workers/WorkerReportingProxy.h#newcode54 Source/core/workers/WorkerReportingProxy.h:54: virtual void workerScriptEvaluated(bool success) ...
6 years, 1 month ago (2014-11-05 03:09:48 UTC) #16
yhirano
bindings/ LGTM https://codereview.chromium.org/692003002/diff/140001/Source/bindings/core/v8/WorkerScriptController.h File Source/bindings/core/v8/WorkerScriptController.h (right): https://codereview.chromium.org/692003002/diff/140001/Source/bindings/core/v8/WorkerScriptController.h#newcode55 Source/bindings/core/v8/WorkerScriptController.h:55: bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = 0); // ...
6 years, 1 month ago (2014-11-05 03:41:10 UTC) #18
haraken
LGTM https://codereview.chromium.org/692003002/diff/140001/public/web/WebServiceWorkerContextClient.h File public/web/WebServiceWorkerContextClient.h (right): https://codereview.chromium.org/692003002/diff/140001/public/web/WebServiceWorkerContextClient.h#newcode99 public/web/WebServiceWorkerContextClient.h:99: virtual void didEvaluateWorkerScript(bool result) { } result => ...
6 years, 1 month ago (2014-11-05 04:26:49 UTC) #19
tkent
lgtm
6 years, 1 month ago (2014-11-05 04:57:21 UTC) #20
nhiroki
Thank you all! https://codereview.chromium.org/692003002/diff/140001/Source/bindings/core/v8/WorkerScriptController.h File Source/bindings/core/v8/WorkerScriptController.h (right): https://codereview.chromium.org/692003002/diff/140001/Source/bindings/core/v8/WorkerScriptController.h#newcode55 Source/bindings/core/v8/WorkerScriptController.h:55: bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = 0); ...
6 years, 1 month ago (2014-11-05 05:33:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/692003002/160001
6 years, 1 month ago (2014-11-05 05:35:12 UTC) #23
commit-bot: I haz the power
6 years, 1 month ago (2014-11-05 08:08:49 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:160001) as 184854

Powered by Google App Engine
This is Rietveld 408576698