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

Issue 1016843002: Implement the ServiceWorkerRegistration.getNotifications() API. (Closed)

Created:
5 years, 9 months ago by Peter Beverloo
Modified:
5 years, 9 months ago
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement the ServiceWorkerRegistration.getNotifications() API. Now that the embedder implements the new Blink APIs, implement the Web exposed API and hook it up with the API. This currently provides a full renderer -> browser -> renderer round-trip, but no implementation on the browser side yet. As such, only add a test to ensure that the path works for the no-notifications-at-all case. When the browser implements the ability to retrieve open notifications, layout tests will be added accordingly. Until then, add a test which gets notifications for a page that has none, to make sure we do exercise the code path. This feature is part of the following Intent to Implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/gb8QoBKJnGU/jKcPVOtnEVoJ This CL is part of a three-sided patch: [1] https://codereview.chromium.org/1018613003/ [2] https://codereview.chromium.org/1014073002/ [3] This CL. BUG=442143 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192290

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments #

Patch Set 3 : update the webexposed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -4 lines) Patch
A LayoutTests/http/tests/notifications/serviceworkerregistration-get-empty.html View 1 1 chunk +28 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A + Source/modules/notifications/GetNotificationOptions.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/modules/notifications/ServiceWorkerRegistrationNotifications.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp View 1 3 chunks +44 lines, -0 lines 0 comments Download
M Source/modules/notifications/ServiceWorkerRegistrationNotifications.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
Peter Beverloo
+johnme for notifications +mkwst FYI
5 years, 9 months ago (2015-03-17 17:43:12 UTC) #2
johnme
non-owner lgtm with optional nit (though I'd encourage Mike to double-check NotificationArray, as I'm not ...
5 years, 9 months ago (2015-03-17 19:39:35 UTC) #3
Mike West
The code change LGTM. Tagging oilpan-reviews@ for someone to give it a second look from ...
5 years, 9 months ago (2015-03-17 20:09:40 UTC) #5
haraken
Oilpan bits LGTM. https://codereview.chromium.org/1016843002/diff/1/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp File Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp (right): https://codereview.chromium.org/1016843002/diff/1/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp#newcode50 Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp:50: delete notificationInfosRaw; I don't fully understand ...
5 years, 9 months ago (2015-03-18 01:32:54 UTC) #7
Peter Beverloo
https://codereview.chromium.org/1016843002/diff/1/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp File Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp (right): https://codereview.chromium.org/1016843002/diff/1/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp#newcode41 Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp:41: const WebPersistentNotificationInfo& notificationInfo = (*notificationInfos)[i]; On 2015/03/17 19:39:35, johnme ...
5 years, 9 months ago (2015-03-19 15:43:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1016843002/20001
5 years, 9 months ago (2015-03-20 14:35:37 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/53369)
5 years, 9 months ago (2015-03-20 16:48:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1016843002/40001
5 years, 9 months ago (2015-03-20 19:29:07 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 22:13:08 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192290

Powered by Google App Engine
This is Rietveld 408576698