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

Issue 1260793007: Generalize validation of developer input for Web Notifications (Closed)

Created:
5 years, 4 months ago by Peter Beverloo
Modified:
5 years, 4 months ago
Reviewers:
johnme
CC:
blink-reviews, peter+watch_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Generalize validation of developer input for Web Notifications Next to removing a whole bunch of duplicated logic, this CL also adds unit tests verifying the developer-data to a WebNotificationData conversion. Additionally, as a follow-up on the following CL, the "auto" value will now be propagated as expected for persistent notifications. https://codereview.chromium.org/1262023003/ BUG=516339 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200150

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : rebase w/o priority #

Patch Set 5 : better rebase #

Patch Set 6 : one more removal #

Patch Set 7 : fix actions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -260 lines) Patch
M LayoutTests/http/tests/notifications/notification-properties.html View 1 2 3 4 2 chunks +0 lines, -48 lines 0 comments Download
M LayoutTests/http/tests/notifications/serviceworkerregistration-document-actions-throw.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/modules.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/notifications/Notification.h View 1 2 3 7 chunks +17 lines, -44 lines 0 comments Download
M Source/modules/notifications/Notification.cpp View 1 2 3 4 5 6 7 chunks +97 lines, -122 lines 0 comments Download
A Source/modules/notifications/NotificationData.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
A Source/modules/notifications/NotificationData.cpp View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
A Source/modules/notifications/NotificationDataTest.cpp View 1 2 3 1 chunk +244 lines, -0 lines 0 comments Download
M Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp View 1 2 3 2 chunks +6 lines, -43 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Peter Beverloo
+johnme, please take a look.
5 years, 4 months ago (2015-08-03 14:55:28 UTC) #2
johnme
Nice, much cleaner :) https://codereview.chromium.org/1260793007/diff/20001/Source/modules/notifications/Notification.cpp File Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/1260793007/diff/20001/Source/modules/notifications/Notification.cpp#newcode256 Source/modules/notifications/Notification.cpp:256: // TODO(peter): The specification requires ...
5 years, 4 months ago (2015-08-03 15:41:36 UTC) #3
Peter Beverloo
PTAL https://codereview.chromium.org/1260793007/diff/20001/Source/modules/notifications/Notification.cpp File Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/1260793007/diff/20001/Source/modules/notifications/Notification.cpp#newcode256 Source/modules/notifications/Notification.cpp:256: // TODO(peter): The specification requires this to be ...
5 years, 4 months ago (2015-08-03 17:29:30 UTC) #4
johnme
lgtm
5 years, 4 months ago (2015-08-06 10:31:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260793007/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260793007/120001
5 years, 4 months ago (2015-08-07 04:52:17 UTC) #8
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 06:04:28 UTC) #9
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200150

Powered by Google App Engine
This is Rietveld 408576698