DescriptionServiceWorker: Registering a malformed script should fail [2/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 makes EmbeddedWorkerInstance wait for the completion and reject an install
promise if the evaluation fails.
Patch dependency:
[1] Blink: https://codereview.chromium.org/692003002/
[2] Chromium: THIS PATCH
[3] Blink: https://codereview.chromium.org/697833004/
BUG=426344
TEST=run-webkit-tests --debug http/tests/serviceworker/
TEST=content_unittests --gtest_filter=ServiceWorker*
Committed: https://crrev.com/fce743b03558b4ea6605c8eb0c43918e02eddf9b
Cr-Commit-Position: refs/heads/master@{#302970}
Patch Set 1 : #Patch Set 2 : s/result/success #Patch Set 3 : rebase #
Total comments: 2
Patch Set 4 : fix test #
Total comments: 4
Patch Set 5 : #
Total comments: 2
Patch Set 6 : fix comment #Messages
Total messages: 21 (8 generated)
|