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

Issue 789643003: The Service Worker notificationclick event should carry a notification. (Closed)

Created:
6 years ago by Peter Beverloo
Modified:
6 years ago
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

The Service Worker notificationclick event should carry a notification. When the notificationclick event fires on a Service Worker (of type NotificationEvent), it should carry the notification it was fired for as a member. This allows the developer to identify the notification, and close it if they so desire. BUG=432527 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187049

Patch Set 1 #

Patch Set 2 : add missing file #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -16 lines) Patch
A LayoutTests/http/tests/notifications/resources/click-close-service-worker.js View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/notifications/resources/click-forward-service-worker.js View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/notifications/service-worker-show-notification-click.html View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
A + LayoutTests/http/tests/notifications/service-worker-show-notification-close.html View 1 2 3 2 chunks +13 lines, -7 lines 0 comments Download
M Source/modules/notifications/Notification.h View 1 2 3 4 4 chunks +19 lines, -0 lines 0 comments Download
M Source/modules/notifications/Notification.cpp View 3 chunks +31 lines, -3 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (8 generated)
Peter Beverloo
+mvanouwerkerk for review. This depends on https://codereview.chromium.org/787893002/.
6 years ago (2014-12-09 16:31:45 UTC) #2
Michael van Ouwerkerk
lgtm with nits https://codereview.chromium.org/789643003/diff/20001/LayoutTests/http/tests/notifications/resources/click-close-service-worker.js File LayoutTests/http/tests/notifications/resources/click-close-service-worker.js (right): https://codereview.chromium.org/789643003/diff/20001/LayoutTests/http/tests/notifications/resources/click-close-service-worker.js#newcode1 LayoutTests/http/tests/notifications/resources/click-close-service-worker.js:1: // Sends a message to all ...
6 years ago (2014-12-09 19:49:21 UTC) #3
Peter Beverloo
+mkwst https://codereview.chromium.org/789643003/diff/20001/LayoutTests/http/tests/notifications/resources/click-close-service-worker.js File LayoutTests/http/tests/notifications/resources/click-close-service-worker.js (right): https://codereview.chromium.org/789643003/diff/20001/LayoutTests/http/tests/notifications/resources/click-close-service-worker.js#newcode1 LayoutTests/http/tests/notifications/resources/click-close-service-worker.js:1: // Sends a message to all clients when ...
6 years ago (2014-12-10 14:11:09 UTC) #5
Peter Beverloo
+michaeln for very minor ServiceWorkerGlobalScopeProxy.cpp change.
6 years ago (2014-12-10 19:40:19 UTC) #7
michaeln1
lgtm
6 years ago (2014-12-10 20:40:17 UTC) #9
Peter Beverloo
+jochen for Source/web/
6 years ago (2014-12-10 22:39:56 UTC) #11
Peter Beverloo
+haraken for Source/web/ maybe? It's already been functionally reviewed by feature owners.
6 years ago (2014-12-11 19:05:17 UTC) #13
haraken
Source/web/ LGTM
6 years ago (2014-12-11 23:38:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789643003/80001
6 years ago (2014-12-12 17:39:39 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=187049
6 years ago (2014-12-12 19:33:38 UTC) #17
sof
I notice that http/tests/notifications/service-worker-show-notification-close.html is flakily failing on some of the bots; expected? Also, calling ...
6 years ago (2014-12-15 12:41:46 UTC) #19
Peter Beverloo
6 years ago (2014-12-15 12:43:08 UTC) #20
Message was sent while issue was closed.
On 2014/12/15 12:41:46, sof wrote:
> I notice that 
> 
>  http/tests/notifications/service-worker-show-notification-close.html
> 
> is flakily failing on some of the bots; expected?
> 
> Also, calling close() on a detached context appears to fail following this CL,
> 
> 
>
https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux_ASA...
> 
> Could you take a look, please?

Ack, I'll make sure this is fixed before EoD. Thanks for pointing it out!

Powered by Google App Engine
This is Rietveld 408576698