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

Issue 466723002: ServiceWorker: Enable ServiceWorkerRegistration and update layout tests (Closed)

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

Description

ServiceWorker: Enable ServiceWorkerRegistration and update layout tests This enables ServiceWorkerRegistration interface and updates layout tests to work with it. Most of layout tests are contributed by horo@ NOTE: ServiceWorker feature is still behind a flag, so this doesn't break any real web applications. Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-registration-obj BUG=396400 TEST=run_webkit_tests.py --debug http/tests/serviceworker Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180317

Patch Set 1 : #

Patch Set 2 : apply horo@'s patch (PatchSet 25 on https://codereview.chromium.org/468753003/) #

Total comments: 28

Patch Set 3 : apply horo@'s patch (PatchSet 28 on https://codereview.chromium.org/468753003/) #

Total comments: 15

Patch Set 4 : add multiple-register.html and unregister-then-register.html #

Total comments: 4

Patch Set 5 : address for comments #

Patch Set 6 : update comments in service-worker-gc.html #

Total comments: 38

Patch Set 7 : fix style #

Total comments: 2

Patch Set 8 : remove DISABLE_SERVICE_WORKER_REGISTRATION block #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+598 lines, -432 lines) Patch
M LayoutTests/http/tests/serviceworker/activation-after-registration.html View 1 chunk +15 lines, -9 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/active.html View 3 chunks +8 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/chromium/registration-stress.html View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/chromium/service-worker-gc.html View 1 2 3 4 5 4 chunks +17 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/chromium/service-worker-gc-expected.txt View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/controller-on-load.html View 1 chunk +20 lines, -20 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/controller-on-reload.html View 1 2 chunks +15 lines, -21 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch.html View 1 2 3 4 5 6 1 chunk +25 lines, -22 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-access-control.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-body-stream.html View 1 2 3 4 5 6 1 chunk +26 lines, -24 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-csp.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-event.html View 1 5 chunks +50 lines, -37 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/indexeddb.html View 1 1 chunk +23 lines, -21 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html View 1 2 3 4 5 6 4 chunks +55 lines, -49 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/installing.html View 2 chunks +8 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/interfaces.html View 1 2 1 chunk +31 lines, -22 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/multiple-register.html View 1 2 3 4 5 6 2 chunks +29 lines, -20 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/postmessage.html View 1 2 3 4 5 6 1 chunk +25 lines, -24 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html View 1 2 3 4 5 6 7 8 2 chunks +31 lines, -31 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/postmessage-to-client.html View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -24 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/ready.html View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/registration.html View 4 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/registration-end-to-end.html View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/registration-events.html View 1 chunk +6 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/request-end-to-end.html View 2 chunks +7 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/test-helpers.js View 1 2 3 4 2 chunks +12 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html View 1 2 3 4 5 6 1 chunk +41 lines, -22 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/state.html View 1 chunk +13 lines, -9 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/unregister.html View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/unregister-controller.html View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/unregister-then-register.html View 1 2 3 4 5 6 12 chunks +43 lines, -16 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/waiting.html View 1 2 3 4 5 6 1 chunk +19 lines, -15 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 3 4 5 6 7 1 chunk +0 lines, -8 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.cpp View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M public/platform/WebServiceWorkerProvider.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
falken
thanks for working on these so quickly https://codereview.chromium.org/466723002/diff/120001/LayoutTests/http/tests/serviceworker/chromium/registration-stress.html File LayoutTests/http/tests/serviceworker/chromium/registration-stress.html (right): https://codereview.chromium.org/466723002/diff/120001/LayoutTests/http/tests/serviceworker/chromium/registration-stress.html#newcode38 LayoutTests/http/tests/serviceworker/chromium/registration-stress.html:38: gc(); Can ...
6 years, 4 months ago (2014-08-14 04:46:12 UTC) #1
nhiroki
horo@: Can you take a look at falken@'s comments?
6 years, 4 months ago (2014-08-14 04:54:53 UTC) #2
horo
I uploaded in https://codereview.chromium.org/468753003/#ps540001 https://codereview.chromium.org/466723002/diff/120001/LayoutTests/http/tests/serviceworker/chromium/registration-stress.html File LayoutTests/http/tests/serviceworker/chromium/registration-stress.html (right): https://codereview.chromium.org/466723002/diff/120001/LayoutTests/http/tests/serviceworker/chromium/registration-stress.html#newcode38 LayoutTests/http/tests/serviceworker/chromium/registration-stress.html:38: gc(); On 2014/08/14 04:46:11, falken ...
6 years, 4 months ago (2014-08-14 07:11:47 UTC) #3
nhiroki
Applied horo@'s patchset 28!
6 years, 4 months ago (2014-08-14 07:29:38 UTC) #4
nhiroki
https://codereview.chromium.org/466723002/diff/160001/LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html File LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html (right): https://codereview.chromium.org/466723002/diff/160001/LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html#newcode58 LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html:58: // [BUG] Same scope test doesn't work. updatefound doesn't ...
6 years, 4 months ago (2014-08-14 08:04:05 UTC) #5
falken
This basically looks good. I don't like how the gc test is now asserting nothing ...
6 years, 4 months ago (2014-08-14 10:16:37 UTC) #6
nhiroki
jfyi: I just uploaded multiple-register.html and unregister-then-register.html, and now there are all tests to be ...
6 years, 4 months ago (2014-08-14 12:17:34 UTC) #7
falken
I think we're stuck with service-worker-gc.html in its current form. So let's just improve the ...
6 years, 4 months ago (2014-08-14 13:13:37 UTC) #8
nhiroki
Thanks! Updated tests and removed WIP mark!! https://codereview.chromium.org/466723002/diff/120001/LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html File LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html (right): https://codereview.chromium.org/466723002/diff/120001/LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html#newcode27 LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-scope.html:27: registration.addEventListener('updatefound', t.step_func(function() ...
6 years, 4 months ago (2014-08-14 13:22:08 UTC) #9
falken
lgtm with style nits https://codereview.chromium.org/466723002/diff/240001/LayoutTests/http/tests/serviceworker/chromium/registration-stress.html File LayoutTests/http/tests/serviceworker/chromium/registration-stress.html (right): https://codereview.chromium.org/466723002/diff/240001/LayoutTests/http/tests/serviceworker/chromium/registration-stress.html#newcode14 LayoutTests/http/tests/serviceworker/chromium/registration-stress.html:14: var number_of_workers = 50; nit: ...
6 years, 4 months ago (2014-08-14 14:23:15 UTC) #10
nhiroki
Thank you for reviewing! Although there are some remaining mismatches with the style guide, let ...
6 years, 4 months ago (2014-08-14 16:37:55 UTC) #11
nhiroki
Hi tkent@, can you review public/platform/WebServiceWorkerProvider.h as an OWNER? Thanks.
6 years, 4 months ago (2014-08-14 23:04:13 UTC) #12
tkent
https://codereview.chromium.org/466723002/diff/260001/public/platform/WebServiceWorkerProvider.h File public/platform/WebServiceWorkerProvider.h (right): https://codereview.chromium.org/466723002/diff/260001/public/platform/WebServiceWorkerProvider.h#newcode56 public/platform/WebServiceWorkerProvider.h:56: #ifdef DISABLE_SERVICE_WORKER_REGISTRATION Don't you remove this block?
6 years, 4 months ago (2014-08-14 23:14:54 UTC) #13
nhiroki
Thank you. Updated. https://codereview.chromium.org/466723002/diff/260001/public/platform/WebServiceWorkerProvider.h File public/platform/WebServiceWorkerProvider.h (right): https://codereview.chromium.org/466723002/diff/260001/public/platform/WebServiceWorkerProvider.h#newcode56 public/platform/WebServiceWorkerProvider.h:56: #ifdef DISABLE_SERVICE_WORKER_REGISTRATION On 2014/08/14 23:14:54, tkent ...
6 years, 4 months ago (2014-08-14 23:28:21 UTC) #14
tkent
lgtm
6 years, 4 months ago (2014-08-14 23:31:08 UTC) #15
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 4 months ago (2014-08-14 23:37:58 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/466723002/280001
6 years, 4 months ago (2014-08-14 23:39:37 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-14 23:39:59 UTC) #18
commit-bot: I haz the power
Failed to apply patch for LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 4 months ago (2014-08-14 23:40:00 UTC) #19
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 4 months ago (2014-08-15 00:20:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/466723002/300001
6 years, 4 months ago (2014-08-15 00:21:09 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-15 02:05:43 UTC) #22
falken
On 2014/08/15 00:20:20, nhiroki wrote: > The CQ bit was checked by mailto:nhiroki@chromium.org It's a ...
6 years, 4 months ago (2014-08-15 02:15:22 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (300001) as 180317
6 years, 4 months ago (2014-08-15 02:32:06 UTC) #24
nhiroki
6 years, 4 months ago (2014-08-15 02:57:32 UTC) #25
Message was sent while issue was closed.
On 2014/08/15 02:15:22, falken wrote:
> On 2014/08/15 00:20:20, nhiroki wrote:
> > The CQ bit was checked by mailto:nhiroki@chromium.org
> 
> It's a bit late, but the CL description should credit Horo-san as well.

Oops... you're right! I'm really sorry, horo-san. I just updated the CL
description, it won't affect the commit log though...

Powered by Google App Engine
This is Rietveld 408576698