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 2319563003: ServiceWorker: Shows a warning when adding event handlers asynchronously (Closed)

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

Description

ServiceWorker: Shows a warning when adding event handlers asynchronously As shown at 15 on [1], "The user agents are encouraged to show a warning that the event listeners must be added on the very first evaluation of the worker script.". This patch adds warning messages for the events. [1]: https://w3c.github.io/ServiceWorker/spec/service_worker/index.html#run-service-worker-algorithm BUG=594160 Committed: https://crrev.com/e14cea541b991c7907123395ea663f39eea7dcfa Cr-Commit-Position: refs/heads/master@{#419967}

Patch Set 1 #

Patch Set 2 : Warning for all event types #

Patch Set 3 : Added a layout test #

Patch Set 4 : Fixed indent #

Total comments: 8

Patch Set 5 : Removed unnecessary logs and used utf8() instead of ascii() #

Patch Set 6 : Updated description of this test #

Patch Set 7 : Rebased and updated the expectation #

Messages

Total messages: 23 (10 generated)
shimazu
ptal
4 years, 3 months ago (2016-09-08 04:20:42 UTC) #2
falken
Sorry to get to this late. Is there any reason not to just show this ...
4 years, 3 months ago (2016-09-09 07:49:16 UTC) #3
shimazu
On 2016/09/09 07:49:16, falken wrote: > Sorry to get to this late. > > Is ...
4 years, 3 months ago (2016-09-14 03:49:13 UTC) #4
falken
Thanks! Can you dupe bugs 594160 and 644617 together and update the CL description? Also ...
4 years, 3 months ago (2016-09-14 03:56:24 UTC) #5
shimazu
On 2016/09/14 03:56:24, falken wrote: > Thanks! Can you dupe bugs 594160 and 644617 together ...
4 years, 3 months ago (2016-09-15 09:50:55 UTC) #8
falken
Thanks for the test! https://codereview.chromium.org/2319563003/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html File third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html (right): https://codereview.chromium.org/2319563003/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html#newcode20 third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html:20: <p>Warning should be shown at ...
4 years, 3 months ago (2016-09-20 01:46:41 UTC) #9
shimazu
Updated. PTAL again! :) https://codereview.chromium.org/2319563003/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html File third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html (right): https://codereview.chromium.org/2319563003/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html#newcode20 third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html:20: <p>Warning should be shown at ...
4 years, 3 months ago (2016-09-20 06:07:52 UTC) #10
falken
lgtm, thank you. CL description nit: add something on the first line to say this ...
4 years, 3 months ago (2016-09-20 06:10:53 UTC) #11
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/2319563003/100001
4 years, 3 months ago (2016-09-20 06:20:26 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/296013)
4 years, 3 months ago (2016-09-20 07:34:42 UTC) #16
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/2319563003/120001
4 years, 3 months ago (2016-09-21 02:27:46 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-21 03:47:17 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 03:48:59 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e14cea541b991c7907123395ea663f39eea7dcfa
Cr-Commit-Position: refs/heads/master@{#419967}

Powered by Google App Engine
This is Rietveld 408576698