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

Issue 1256133002: Service Worker: Correct Web IDL of ExtendableEvent.waitUntil method. (Closed)

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

Description

Service Worker: Correct Web IDL of ExtendableEvent.waitUntil method. As per the spec, ExtendableEvent.waitUntil() method's argument should be of type Promise<any> instead of any. For the non-promise value, the Web IDL automatically casts it to a promise via Promise.resolve. So this CL moves the ScriptPromise::cast from Blink to V8 layer. This change does not affect the existing implementation. Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#wait-until-method BUG=514042 Committed: https://crrev.com/2223c104b56eaed9abc1d1f69723a2c7c8f61bda git-svn-id: svn://svn.chromium.org/blink/trunk@199643 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Patch Set 2 : Rename method params. #

Total comments: 5

Patch Set 3 : Use |ScriptPromise| instead of |ScriptPromise&|. #

Total comments: 5

Patch Set 4 : Address comment: add/delete headers. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M Source/modules/serviceworkers/ExtendableEvent.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/ExtendableEvent.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/ExtendableEvent.idl View 1 chunk +1 line, -1 line 2 comments Download
M Source/modules/serviceworkers/WaitUntilObserver.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/serviceworkers/WaitUntilObserver.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
jungkees
PTAL
5 years, 4 months ago (2015-07-26 12:44:31 UTC) #2
zino
On 2015/07/26 12:44:31, jungkees wrote: > PTAL There is no any regression. Looks good to ...
5 years, 4 months ago (2015-07-27 06:04:34 UTC) #3
jungkees
Thanks for peer-review zino@. OWNERs, PTAL.
5 years, 4 months ago (2015-07-27 06:28:00 UTC) #5
yhirano
https://codereview.chromium.org/1256133002/diff/20001/Source/modules/serviceworkers/ExtendableEvent.h File Source/modules/serviceworkers/ExtendableEvent.h (right): https://codereview.chromium.org/1256133002/diff/20001/Source/modules/serviceworkers/ExtendableEvent.h#newcode52 Source/modules/serviceworkers/ExtendableEvent.h:52: void waitUntil(ScriptState*, ScriptPromise&, ExceptionState&); Can you use |ScriptPromise| instead ...
5 years, 4 months ago (2015-07-27 12:21:24 UTC) #6
jungkees
Thanks for review. I left a question. Could you please explain? https://codereview.chromium.org/1256133002/diff/20001/Source/modules/serviceworkers/ExtendableEvent.h File Source/modules/serviceworkers/ExtendableEvent.h (right): ...
5 years, 4 months ago (2015-07-27 12:37:49 UTC) #7
yhirano
https://codereview.chromium.org/1256133002/diff/20001/Source/modules/serviceworkers/ExtendableEvent.h File Source/modules/serviceworkers/ExtendableEvent.h (right): https://codereview.chromium.org/1256133002/diff/20001/Source/modules/serviceworkers/ExtendableEvent.h#newcode52 Source/modules/serviceworkers/ExtendableEvent.h:52: void waitUntil(ScriptState*, ScriptPromise&, ExceptionState&); On 2015/07/27 12:37:49, jungkees wrote: ...
5 years, 4 months ago (2015-07-27 12:45:32 UTC) #8
jungkees
I'll upload a new snapshot addressing it. Thanks. https://codereview.chromium.org/1256133002/diff/20001/Source/modules/serviceworkers/ExtendableEvent.h File Source/modules/serviceworkers/ExtendableEvent.h (right): https://codereview.chromium.org/1256133002/diff/20001/Source/modules/serviceworkers/ExtendableEvent.h#newcode52 Source/modules/serviceworkers/ExtendableEvent.h:52: void ...
5 years, 4 months ago (2015-07-27 14:23:33 UTC) #9
jungkees
Uploaded a new snapshot. PTAL.
5 years, 4 months ago (2015-07-27 15:00:37 UTC) #10
yhirano
lgtm https://codereview.chromium.org/1256133002/diff/40001/Source/modules/serviceworkers/ExtendableEvent.h File Source/modules/serviceworkers/ExtendableEvent.h (right): https://codereview.chromium.org/1256133002/diff/40001/Source/modules/serviceworkers/ExtendableEvent.h#newcode34 Source/modules/serviceworkers/ExtendableEvent.h:34: #include "bindings/core/v8/ScriptValue.h" -ScriptValue +bindings/core/v8/ScriptPromoise.h https://codereview.chromium.org/1256133002/diff/40001/Source/modules/serviceworkers/WaitUntilObserver.h File Source/modules/serviceworkers/WaitUntilObserver.h (right): ...
5 years, 4 months ago (2015-07-29 06:28:40 UTC) #11
jungkees
Addressed the comments. Thanks for review! https://codereview.chromium.org/1256133002/diff/40001/Source/modules/serviceworkers/ExtendableEvent.h File Source/modules/serviceworkers/ExtendableEvent.h (right): https://codereview.chromium.org/1256133002/diff/40001/Source/modules/serviceworkers/ExtendableEvent.h#newcode34 Source/modules/serviceworkers/ExtendableEvent.h:34: #include "bindings/core/v8/ScriptValue.h" Addressed. ...
5 years, 4 months ago (2015-07-29 07:55:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256133002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256133002/60001
5 years, 4 months ago (2015-07-29 07:56:25 UTC) #15
yhirano
https://codereview.chromium.org/1256133002/diff/40001/Source/modules/serviceworkers/WaitUntilObserver.h File Source/modules/serviceworkers/WaitUntilObserver.h (right): https://codereview.chromium.org/1256133002/diff/40001/Source/modules/serviceworkers/WaitUntilObserver.h#newcode21 Source/modules/serviceworkers/WaitUntilObserver.h:21: class ScriptValue; On 2015/07/29 07:55:46, jungkees wrote: > On ...
5 years, 4 months ago (2015-07-29 08:00:02 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/38666)
5 years, 4 months ago (2015-07-29 08:01:07 UTC) #18
jungkees
I think I need an lgtm from a SW OWNER. PTAL
5 years, 4 months ago (2015-07-29 08:08:14 UTC) #19
falken
https://codereview.chromium.org/1256133002/diff/60001/Source/modules/serviceworkers/ExtendableEvent.idl File Source/modules/serviceworkers/ExtendableEvent.idl (right): https://codereview.chromium.org/1256133002/diff/60001/Source/modules/serviceworkers/ExtendableEvent.idl#newcode37 Source/modules/serviceworkers/ExtendableEvent.idl:37: [CallWith=ScriptState, RaisesException] void waitUntil(Promise<any> f); what does f stand ...
5 years, 4 months ago (2015-07-29 08:14:55 UTC) #20
nhiroki
lgtm
5 years, 4 months ago (2015-07-29 08:19:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256133002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256133002/60001
5 years, 4 months ago (2015-07-29 08:28:50 UTC) #23
jungkees
Missed falken's comment before committing it. Left my thought on the name of the IDL ...
5 years, 4 months ago (2015-07-29 08:34:19 UTC) #24
falken
On 2015/07/29 08:34:19, jungkees wrote: > Missed falken's comment before committing it. Left my thought ...
5 years, 4 months ago (2015-07-29 08:40:48 UTC) #25
jungkees
On 2015/07/29 08:40:48, falken wrote: > Not a big deal, it's OK to commit and ...
5 years, 4 months ago (2015-07-29 08:42:36 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199643
5 years, 4 months ago (2015-07-29 09:00:02 UTC) #27
commit-bot: I haz the power
5 years, 2 months ago (2015-09-23 11:52:57 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2223c104b56eaed9abc1d1f69723a2c7c8f61bda

Powered by Google App Engine
This is Rietveld 408576698