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

Issue 2873373004: Remove duplicate service worker test (Closed)

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

Description

Remove duplicate service worker test This test exists in both WPT and the Chromium project tree. The WPT version is slightly weaker because it accounts for a condition that is not possible according to the latest version of the Service Workers specification [1]. > # Install > > [...] > > 16. Run the Update Registration State algorithm passing registration, > "waiting" and registration’s installing worker as the arguments. > 17. Run the Update Registration State algorithm passing registration, > "installing" and null as the arguments. > 18. Run the Update Worker State algorithm passing registration’s > waiting worker and installed as the arguments. > 19. Invoke Finish Job with job. > 20. Wait for all the tasks queued by Update Worker State invoked in > this algorithm have executed. > 21. Invoke Try Activate with registration. Due to step 20, worker activation does not occur until all prior tasks (which includes microtasks such as the Promise handler microtask created in the test's body) have executed. Remove the conditional logic from the WPT version and remove the Chromium test file. Explicitly un-register workers following test completion. [1] https://w3c.github.io/ServiceWorker/#installation-algorithm, retrieved on 17.05.18 BUG=688116 R=falken@chromium.org Review-Url: https://codereview.chromium.org/2873373004 Cr-Commit-Position: refs/heads/master@{#473227} Committed: https://chromium.googlesource.com/chromium/src/+/51eb76c3327468323acfea2393253f846d5aea25

Patch Set 1 #

Patch Set 2 : Remove duplicate service worker test #

Patch Set 3 : Remove unnecessary precaution #

Total comments: 2

Patch Set 4 : Un-register workers following test completion #

Messages

Total messages: 20 (8 generated)
mike3
Hi Mek, Here's the diff between Chromium's version and WPT's version: https://gist.github.com/jugglinmike/152032e504251f1e3319dd32e02b70ae WPT makes additional ...
3 years, 7 months ago (2017-05-10 20:25:33 UTC) #1
falken
On 2017/05/10 20:25:33, mike3 wrote: > Hi Mek, > > Here's the diff between Chromium's ...
3 years, 7 months ago (2017-05-11 00:36:56 UTC) #2
mike3
On 2017/05/11 00:36:56, falken wrote: > If I recall, Mozilla's implementation needs this because their ...
3 years, 7 months ago (2017-05-11 17:39:12 UTC) #3
falken
On 2017/05/11 17:39:12, mike3 wrote: > On 2017/05/11 00:36:56, falken wrote: > > If I ...
3 years, 7 months ago (2017-05-15 05:26:57 UTC) #4
mike3
On 2017/05/15 05:26:57, falken wrote: > I think I found the discussion I was thinking ...
3 years, 7 months ago (2017-05-15 18:33:03 UTC) #5
Marijn Kruisselbrink
On 2017/05/15 at 18:33:03, mike wrote: > - The first Promise handler is invoked as ...
3 years, 7 months ago (2017-05-16 18:58:21 UTC) #6
falken
On 2017/05/16 18:58:21, Marijn Kruisselbrink wrote: > On 2017/05/15 at 18:33:03, mike wrote: > > ...
3 years, 7 months ago (2017-05-17 07:07:26 UTC) #7
mike3
On 2017/05/17 07:07:26, falken wrote: > On 2017/05/16 18:58:21, Marijn Kruisselbrink wrote: > > On ...
3 years, 7 months ago (2017-05-18 17:11:16 UTC) #9
falken
lgtm https://codereview.chromium.org/2873373004/diff/40001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/onactivate-script-error.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/onactivate-script-error.https.html (right): https://codereview.chromium.org/2873373004/diff/40001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/onactivate-script-error.https.html#newcode41 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/onactivate-script-error.https.html:41: }); I think we need to unregister the ...
3 years, 7 months ago (2017-05-19 02:19:04 UTC) #11
mike3
Thanks, Matt! https://codereview.chromium.org/2873373004/diff/40001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/onactivate-script-error.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/onactivate-script-error.https.html (right): https://codereview.chromium.org/2873373004/diff/40001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/onactivate-script-error.https.html#newcode41 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/onactivate-script-error.https.html:41: }); On 2017/05/19 02:19:04, falken wrote: > ...
3 years, 7 months ago (2017-05-19 15:54:51 UTC) #14
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/2873373004/60001
3 years, 7 months ago (2017-05-19 15:55:34 UTC) #17
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 17:27:00 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/51eb76c3327468323acfea239325...

Powered by Google App Engine
This is Rietveld 408576698