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

Issue 285403002: Push API: define push event on Service Worker. (Closed)

Created:
6 years, 7 months ago by Michael van Ouwerkerk
Modified:
6 years, 6 months ago
CC:
blink-reviews, jsbell+serviceworker_chromium.org, jamesr, tzik, serviceworker-reviews, nhiroki, abarth-chromium, kinuko, falken, dglazkov+blink, horo+watch_chromium.org, alecflett+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Push API: define push event on Service Worker. BUG=350394 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175652

Patch Set 1 #

Patch Set 2 : Define PushEvent with data attribute. #

Total comments: 16

Patch Set 3 : Rebase. Avoid modifying modules/serviceworkers/. #

Total comments: 14

Patch Set 4 : Rebase. Pass data param from browser process. #

Patch Set 5 : Rebase. #

Patch Set 6 : Delete callback. #

Patch Set 7 : Rebase. #

Patch Set 8 : Add webexposed. #

Total comments: 2

Patch Set 9 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -4 lines) Patch
M LayoutTests/webexposed/global-constructors-listing-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/EventTypeNames.in View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -0 lines 0 comments Download
A Source/modules/push_messaging/PushEvent.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A Source/modules/push_messaging/PushEvent.cpp View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A + Source/modules/push_messaging/PushEvent.idl View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
A Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
A + Source/modules/push_messaging/ServiceWorkerGlobalScopePush.idl View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M public/web/WebServiceWorkerContextProxy.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Michael van Ouwerkerk
Michael: please review from Service Worker perspective Peter: please review from Push API perspective
6 years, 7 months ago (2014-05-16 15:26:06 UTC) #1
Peter Beverloo
Hi Michael, thanks for the patch! I think we can wire this up much closer ...
6 years, 7 months ago (2014-05-16 15:41:43 UTC) #2
michaeln
Assuming the only possible recipients of push events are serviceworkers (is that right), the webkit ...
6 years, 7 months ago (2014-05-16 20:24:37 UTC) #3
Peter Beverloo
On 2014/05/16 20:24:37, michaeln wrote: > Assuming the only possible recipients of push events are ...
6 years, 7 months ago (2014-05-19 13:47:55 UTC) #4
michaeln
> I worry about the scalability of this solution. As more APIs start to depend ...
6 years, 7 months ago (2014-05-19 22:18:59 UTC) #5
Michael van Ouwerkerk
Thanks for your comments so far. This is a WIP upload. Changes: * Partial interface ...
6 years, 7 months ago (2014-05-21 17:06:41 UTC) #6
kinuko
DBC (no need to be blocked by my comments) https://codereview.chromium.org/285403002/diff/40001/public/web/WebServiceWorkerContextProxy.h File public/web/WebServiceWorkerContextProxy.h (right): https://codereview.chromium.org/285403002/diff/40001/public/web/WebServiceWorkerContextProxy.h#newcode61 public/web/WebServiceWorkerContextProxy.h:61: ...
6 years, 7 months ago (2014-05-22 04:33:19 UTC) #7
dominicc (has gone to gerrit)
Nits inline. https://codereview.chromium.org/285403002/diff/40001/Source/modules/push_messaging/PushEvent.cpp File Source/modules/push_messaging/PushEvent.cpp (right): https://codereview.chromium.org/285403002/diff/40001/Source/modules/push_messaging/PushEvent.cpp#newcode20 Source/modules/push_messaging/PushEvent.cpp:20: : Event(type, false /* canBubble */, false ...
6 years, 7 months ago (2014-05-22 06:52:28 UTC) #8
Peter Beverloo
https://codereview.chromium.org/285403002/diff/40001/Source/modules/push_messaging/PushEvent.idl File Source/modules/push_messaging/PushEvent.idl (right): https://codereview.chromium.org/285403002/diff/40001/Source/modules/push_messaging/PushEvent.idl#newcode6 Source/modules/push_messaging/PushEvent.idl:6: EventConstructor, Please guard this behind the runtime flag. It ...
6 years, 7 months ago (2014-05-22 16:09:49 UTC) #9
Michael van Ouwerkerk
Thanks! Please take another look. https://codereview.chromium.org/285403002/diff/40001/Source/modules/push_messaging/PushEvent.cpp File Source/modules/push_messaging/PushEvent.cpp (right): https://codereview.chromium.org/285403002/diff/40001/Source/modules/push_messaging/PushEvent.cpp#newcode20 Source/modules/push_messaging/PushEvent.cpp:20: : Event(type, false /* ...
6 years, 7 months ago (2014-05-23 18:32:03 UTC) #10
dominicc (has gone to gerrit)
https://codereview.chromium.org/285403002/diff/40001/Source/modules/push_messaging/ServiceWorkerGlobalScopePush.idl File Source/modules/push_messaging/ServiceWorkerGlobalScopePush.idl (right): https://codereview.chromium.org/285403002/diff/40001/Source/modules/push_messaging/ServiceWorkerGlobalScopePush.idl#newcode6 Source/modules/push_messaging/ServiceWorkerGlobalScopePush.idl:6: RuntimeEnabled=ServiceWorker, On 2014/05/23 18:32:03, Michael van Ouwerkerk wrote: > ...
6 years, 7 months ago (2014-05-26 02:31:43 UTC) #11
kinuko
https://codereview.chromium.org/285403002/diff/40001/public/web/WebServiceWorkerContextProxy.h File public/web/WebServiceWorkerContextProxy.h (right): https://codereview.chromium.org/285403002/diff/40001/public/web/WebServiceWorkerContextProxy.h#newcode61 public/web/WebServiceWorkerContextProxy.h:61: virtual void dispatchPushEvent(int eventID, const WebString& data, const WebServiceWorkerPushEventCallback&) ...
6 years, 7 months ago (2014-05-26 04:03:00 UTC) #12
Michael van Ouwerkerk
ptal
6 years, 6 months ago (2014-06-05 14:24:48 UTC) #13
dominicc (has gone to gerrit)
On 2014/06/05 14:24:48, Michael van Ouwerkerk wrote: > ptal Informal LGTM; you will still need ...
6 years, 6 months ago (2014-06-06 01:44:52 UTC) #14
Michael van Ouwerkerk
Jochen, could you take a look for the missing owner bits for the */web/* files?
6 years, 6 months ago (2014-06-06 09:38:11 UTC) #15
jochen (gone - plz use gerrit)
lgtm
6 years, 6 months ago (2014-06-06 09:44:21 UTC) #16
Michael van Ouwerkerk
The CQ bit was checked by mvanouwerkerk@chromium.org
6 years, 6 months ago (2014-06-06 09:45:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/285403002/140001
6 years, 6 months ago (2014-06-06 09:46:23 UTC) #18
Peter Beverloo
lgtm % question https://codereview.chromium.org/285403002/diff/140001/Source/modules/push_messaging/PushEvent.idl File Source/modules/push_messaging/PushEvent.idl (right): https://codereview.chromium.org/285403002/diff/140001/Source/modules/push_messaging/PushEvent.idl#newcode8 Source/modules/push_messaging/PushEvent.idl:8: ] interface PushEvent : Event { ...
6 years, 6 months ago (2014-06-06 09:47:48 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-06 09:51:00 UTC) #20
commit-bot: I haz the power
Change committed as 175652
6 years, 6 months ago (2014-06-06 09:55:15 UTC) #21
Michael van Ouwerkerk
https://codereview.chromium.org/285403002/diff/140001/Source/modules/push_messaging/PushEvent.idl File Source/modules/push_messaging/PushEvent.idl (right): https://codereview.chromium.org/285403002/diff/140001/Source/modules/push_messaging/PushEvent.idl#newcode8 Source/modules/push_messaging/PushEvent.idl:8: ] interface PushEvent : Event { On 2014/06/06 09:47:47, ...
6 years, 6 months ago (2014-06-06 09:59:48 UTC) #22
Michael van Ouwerkerk
6 years, 6 months ago (2014-06-06 10:10:19 UTC) #23
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/319973002/ by mvanouwerkerk@chromium.org.

The reason for reverting is: Broke all builds:
http://build.chromium.org/p/chromium.webkit/console

e.g.
http://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Bui....

Powered by Google App Engine
This is Rietveld 408576698