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

Issue 1260833003: Service Worker: (Re-commit) Make ServiceWorkerRegistration.update() return a promise. (Blink 1/3) (Closed)

Created:
5 years, 4 months ago by jungkees
Modified:
5 years, 4 months ago
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, dglazkov+blink, kinuko+serviceworker, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Service Worker: (Re-commit) Make ServiceWorkerRegistration.update() return a promise. (Blink 1/3) * The original CL was committed but reverted due to a leak report: https://codereview.chromium.org/1267703003/#msg29. This CL re-commits the original CL with a patch for the leak. This change will also be existed temporarily until the chromium-side patch will land. -- As per the resolution of f2f, ServiceWorkerRegistration.update() should return a promise that transforms the promise returned by Update algorithm. In this CL, ServiceWorkerContextCore::UpdateServiceWorker method has been overloaded to cover two invocation paths: a scheduled update without a provider_host and a callback (Soft Update in the spec) and a call initiated from the script surface using ServiceWorkerRegistration.update(). This is a web-exposed API change. But it has no compatibility risk because existing user code doesn't expect to receive anything from update(). Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-registration-update Spec discussion: https://github.com/slightlyoff/ServiceWorker/issues/311 Companion CL (Chromium): https://codereview.chromium.org/1270513002/ Companion CL (Blink layout test): https://codereview.chromium.org/1268663003/ BUG=513655 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199875

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove |this| for calling its own method. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M Source/modules/serviceworkers/ServiceWorkerRegistration.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.cpp View 1 chunk +9 lines, -4 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.idl View 1 chunk +1 line, -1 line 0 comments Download
M public/platform/WebServiceWorkerRegistration.h View 1 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
jungkees
tkent@, nhiroki@, zino@, The commit from the original CL was reverted with a leak report: ...
5 years, 4 months ago (2015-08-01 05:01:18 UTC) #2
tkent
lgtm https://codereview.chromium.org/1260833003/diff/1/public/platform/WebServiceWorkerRegistration.h File public/platform/WebServiceWorkerRegistration.h (right): https://codereview.chromium.org/1260833003/diff/1/public/platform/WebServiceWorkerRegistration.h#newcode33 public/platform/WebServiceWorkerRegistration.h:33: // internally call this->update(p) to work with the ...
5 years, 4 months ago (2015-08-02 23:32:42 UTC) #3
zino
non-onwer lgtm.
5 years, 4 months ago (2015-08-03 00:43:13 UTC) #4
nhiroki
lgtm
5 years, 4 months ago (2015-08-03 03:19:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260833003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260833003/20001
5 years, 4 months ago (2015-08-03 03:29:38 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199875
5 years, 4 months ago (2015-08-03 05:34:39 UTC) #9
jungkees
johnme@, I checked it from the flakiness dashboard that this commit still causes http/tests/serviceworker/update.html to ...
5 years, 4 months ago (2015-08-03 08:24:57 UTC) #10
johnme
On 2015/08/03 08:24:57, jungkees wrote: > johnme@, I checked it from the flakiness dashboard that ...
5 years, 4 months ago (2015-08-03 08:42:34 UTC) #11
jungkees
The chromium-side patch has just landed: https://codereview.chromium.org/1270513002/#msg39. I'll keep an eye on the flakiness dashboard.
5 years, 4 months ago (2015-08-03 12:15:54 UTC) #12
jungkees
On 2015/08/03 12:15:54, jungkees wrote: > The chromium-side patch has just landed: > https://codereview.chromium.org/1270513002/#msg39. I'll ...
5 years, 4 months ago (2015-08-03 13:28:33 UTC) #13
johnme
5 years, 4 months ago (2015-08-03 13:59:28 UTC) #14
Message was sent while issue was closed.
On 2015/08/03 13:28:33, jungkees wrote:
> On 2015/08/03 12:15:54, jungkees wrote:
> > The chromium-side patch has just landed:
> > https://codereview.chromium.org/1270513002/#msg39. I'll keep an eye on the
> > flakiness dashboard.
> 
> Yes, it starts passing again! :)

Thanks for following up :)

Powered by Google App Engine
This is Rietveld 408576698