6 years, 4 months ago
(2014-07-28 12:24:52 UTC)
#2
https://codereview.chromium.org/416003003/diff/60001/LayoutTests/http/tests/s...
File LayoutTests/http/tests/serviceworker/unregister-controller.html (right):
https://codereview.chromium.org/416003003/diff/60001/LayoutTests/http/tests/s...
LayoutTests/http/tests/serviceworker/unregister-controller.html:121: // FIXME:
Failing expectation.
On 2014/07/28 12:23:23, falken wrote:
> I think this would fail regardless of unregister. We always populate
controller
> with a new handle in ServiceWorkerProviderHost::SetControllerVersion. This
will
> have to somehow lookup an existing handle.
Actually, my expectation was not right. The windows are different so the workers
won't have the prototype. So we shouldn't expect these to be equal.
falken
Fixed and simplified the test.
6 years, 4 months ago
(2014-07-29 02:37:37 UTC)
#3
Fixed and simplified the test.
nhiroki
lgtm
6 years, 4 months ago
(2014-07-29 09:06:21 UTC)
#4
lgtm
michaeln
lgtm, but... i think you should ask jake/alex to look at these tests too, to ...
6 years, 4 months ago
(2014-07-30 02:49:43 UTC)
#5
lgtm, but...
i think you should ask jake/alex to look at these tests too, to understand the
detailed consequences of the algos, some of the these outcomes are kinda counter
intuitive to me?
https://codereview.chromium.org/416003003/diff/100001/LayoutTests/http/tests/...
File LayoutTests/http/tests/serviceworker/unregister-then-register.html (right):
https://codereview.chromium.org/416003003/diff/100001/LayoutTests/http/tests/...
LayoutTests/http/tests/serviceworker/unregister-then-register.html:52: // if
registration fails due to a 404 error when fetching the script.
I agree this is the result of the specified algos, but this behavior is probably
going to surprise some people?
// pre - 'something' is registered at scope
unreg(scope)
reg(bustedthing, scope)
// post - 'something' is still registered at scope
https://codereview.chromium.org/416003003/diff/100001/LayoutTests/http/tests/...
LayoutTests/http/tests/serviceworker/unregister-then-register.html:95: // if
installation of the new worker fails.
ditto
falken
On 2014/07/30 02:49:43, michaeln wrote: > i think you should ask jake/alex to look at ...
6 years, 4 months ago
(2014-07-30 09:41:49 UTC)
#6
On 2014/07/30 02:49:43, michaeln wrote:
> i think you should ask jake/alex to look at these tests too, to understand the
> detailed consequences of the algos, some of the these outcomes are kinda
counter
> intuitive to me?
>
Asked the spec folks here:
https://github.com/slightlyoff/ServiceWorker/issues/396
falken
michaeln, nhiroki: PTAL. I'd like to revive this patch to assert what we're currently doing. ...
6 years, 4 months ago
(2014-08-07 12:53:50 UTC)
#7
On 2014/08/07 12:53:50, falken wrote: > michaeln, nhiroki: PTAL. I'd like to revive this patch ...
6 years, 4 months ago
(2014-08-08 05:52:16 UTC)
#8
On 2014/08/07 12:53:50, falken wrote:
> michaeln, nhiroki: PTAL. I'd like to revive this patch to assert what we're
> currently doing.
>
> It also looks like we're pretty close to how the spec will end up.
Actually, hold off on reviewing. The spec just got updated. I'll revive this
patch with the resurrection patch.
falken
Revised patch to be more in line with current spec. PTAL Our current shortcomings are: ...
6 years, 4 months ago
(2014-08-08 07:44:22 UTC)
#9
Revised patch to be more in line with current spec. PTAL
Our current shortcomings are:
- New-scope registration overrides the existing registration. This is an
existing bug: https://code.google.com/p/chromium/issues/detail?id=398355
- register() should wait before resolving if docs are using an unregistered
registration. This is a new spec requirement.
- We don't do "early-rejection" described by
https://github.com/slightlyoff/ServiceWorker/issues/396. Also a new spec
requirement.
falken
On 2014/08/08 07:44:22, falken wrote: > Revised patch to be more in line with current ...
6 years, 4 months ago
(2014-08-11 11:27:47 UTC)
#10
On 2014/08/08 07:44:22, falken wrote:
> Revised patch to be more in line with current spec. PTAL
>
> Our current shortcomings are:
> - New-scope registration overrides the existing registration. This is an
> existing bug: https://code.google.com/p/chromium/issues/detail?id=398355
> - register() should wait before resolving if docs are using an unregistered
> registration. This is a new spec requirement.
> - We don't do "early-rejection" described by
> https://github.com/slightlyoff/ServiceWorker/issues/396. Also a new spec
> requirement.
ping!
michaeln
lgtm, wdyt about putting the comment below in the CL description? > Revised patch to ...
6 years, 4 months ago
(2014-08-12 03:14:28 UTC)
#11
lgtm, wdyt about putting the comment below in the CL description?
> Revised patch to be more in line with current spec.
>
> Our current shortcomings are:
> - New-scope registration overrides the existing registration. This is an
> existing bug: https://code.google.com/p/chromium/issues/detail?id=398355
> - register() should wait before resolving if docs are using an unregistered
> registration. This is a new spec requirement.
> - We don't do "early-rejection" described by
> https://github.com/slightlyoff/ServiceWorker/issues/396. Also a new spec
> requirement.
nhiroki
LGTM2
6 years, 4 months ago
(2014-08-12 04:58:13 UTC)
#12
LGTM2
falken
The CQ bit was checked by falken@chromium.org
6 years, 4 months ago
(2014-08-13 04:55:04 UTC)
#13
On 2014/08/12 03:14:28, michaeln wrote: > lgtm, wdyt about putting the comment below in the ...
6 years, 4 months ago
(2014-08-13 05:16:50 UTC)
#16
On 2014/08/12 03:14:28, michaeln wrote:
> lgtm, wdyt about putting the comment below in the CL description?
>
> > Revised patch to be more in line with current spec.
> >
> > Our current shortcomings are:
> > - New-scope registration overrides the existing registration. This is an
> > existing bug: https://code.google.com/p/chromium/issues/detail?id=398355
> > - register() should wait before resolving if docs are using an unregistered
> > registration. This is a new spec requirement.
> > - We don't do "early-rejection" described by
> > https://github.com/slightlyoff/ServiceWorker/issues/396. Also a new spec
> > requirement.
Almost forgot this. That's a great idea, done.
falken
The CQ bit was checked by falken@chromium.org
6 years, 4 months ago
(2014-08-13 05:17:14 UTC)
#17
Issue 416003003: Test for register canceling an unregister.
(Closed)
Created 6 years, 5 months ago by falken
Modified 6 years, 4 months ago
Reviewers: michaeln, nhiroki
Base URL: svn://svn.chromium.org/blink/trunk
Comments: 5