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

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

Created:
6 years, 1 month ago by nhiroki
Modified:
6 years, 1 month ago
Reviewers:
falken
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, kinuko+serviceworker, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@install_malformed_script
Project:
blink
Visibility:
Public.

Description

ServiceWorker: Registering a malformed script should fail [3/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. This adds layout tests for a variety of error cases. Patch dependency: [1] Blink: https://codereview.chromium.org/692003002/ [2] Chromium: https://codereview.chromium.org/697593002/ [3] Blink: THIS PATCH BUG=426344 TEST=run-webkit-tests --debug http/tests/serviceworker/ Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184903

Patch Set 1 : #

Patch Set 2 : add tests for importScripts() #

Patch Set 3 : s/importScript/importScripts/ #

Total comments: 4

Patch Set 4 : add more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -1 line) Patch
M LayoutTests/http/tests/serviceworker/registration.html View 1 2 3 1 chunk +57 lines, -1 line 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/malformed-worker.php View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
falken
Question: What happens with importScripts('malformed.js')? And what do we want to happen... ?
6 years, 1 month ago (2014-11-04 04:14:02 UTC) #3
nhiroki
On 2014/11/04 04:14:02, falken wrote: > Question: What happens with importScripts('malformed.js')? And what do we ...
6 years, 1 month ago (2014-11-04 05:06:06 UTC) #4
nhiroki
On 2014/11/04 05:06:06, nhiroki wrote: > On 2014/11/04 04:14:02, falken wrote: > > Question: What ...
6 years, 1 month ago (2014-11-04 05:14:56 UTC) #5
nhiroki
On 2014/11/04 05:14:56, nhiroki wrote: > On 2014/11/04 05:06:06, nhiroki wrote: > > On 2014/11/04 ...
6 years, 1 month ago (2014-11-04 05:21:15 UTC) #6
falken
On 2014/11/04 05:21:15, nhiroki wrote: > On 2014/11/04 05:14:56, nhiroki wrote: > > On 2014/11/04 ...
6 years, 1 month ago (2014-11-04 05:26:41 UTC) #7
falken
loooks good with nits https://codereview.chromium.org/697833004/diff/60001/LayoutTests/http/tests/serviceworker/registration.html File LayoutTests/http/tests/serviceworker/registration.html (right): https://codereview.chromium.org/697833004/diff/60001/LayoutTests/http/tests/serviceworker/registration.html#newcode95 LayoutTests/http/tests/serviceworker/registration.html:95: var script = 'resources/import-no-such-script.js'; We've ...
6 years, 1 month ago (2014-11-04 05:47:55 UTC) #8
nhiroki
Added more layout tests for cases you mentioned. Can you take another look? Thanks! https://codereview.chromium.org/697833004/diff/60001/LayoutTests/http/tests/serviceworker/registration.html ...
6 years, 1 month ago (2014-11-04 08:56:21 UTC) #12
falken
LGTM
6 years, 1 month ago (2014-11-05 01:47:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/697833004/140001
6 years, 1 month ago (2014-11-06 07:15:09 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/29783)
6 years, 1 month ago (2014-11-06 08:24:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/697833004/140001
6 years, 1 month ago (2014-11-06 09:09:06 UTC) #19
commit-bot: I haz the power
6 years, 1 month ago (2014-11-06 09:43:55 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:140001) as 184903

Powered by Google App Engine
This is Rietveld 408576698