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

Issue 1974033003: Ship the Notification.action and Notification.vibration properties (Closed)

Created:
4 years, 7 months ago by Peter Beverloo
Modified:
4 years, 5 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@threadsafe-statics
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ship the Notification.action and Notification.vibration properties This CL changes the return types of both properties to FrozenArray<>, amends Notification.actions to also freeze the individual NotificationAction objects contained therein, and enables the properties by default. In addition, [SameObject] semantics have been added to the two properties, which now mean that they will continue to return the same value, making the equality operator work as expected. Intent to ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/0mBO8Q5FhTo/2OagzgagBgAJ BUG=547716, 442132 Committed: https://crrev.com/b16af0ae12f9d37558e95cb92222c4313df098c0 Cr-Commit-Position: refs/heads/master@{#403191}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : SameObject #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Ship the Notification.action and Notification.vibration properties #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -29 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html View 1 2 4 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notification-properties.html View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 2 3 4 3 chunks +17 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.idl View 1 2 3 4 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (11 generated)
Peter Beverloo
+johnme for notifications +bashi/haraken for bindings and the updated Notification::actions implementation +domenic for strict equality ...
4 years, 7 months ago (2016-05-12 14:54:14 UTC) #2
haraken
bindings/ LGTM. > `notification.actions === notification.actions` > `notification.vibrate === notification.vibrate` bashi-san?
4 years, 7 months ago (2016-05-12 14:56:31 UTC) #3
Michael van Ouwerkerk
\o/ drive-by cheers and nit :-) https://codereview.chromium.org/1974033003/diff/1/third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html File third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html (right): https://codereview.chromium.org/1974033003/diff/1/third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html#newcode63 third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html:63: assert_array_equals(notification.vibrate, []); nit: ...
4 years, 7 months ago (2016-05-12 15:05:00 UTC) #5
Peter Beverloo
Thank you Michael! https://codereview.chromium.org/1974033003/diff/1/third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html File third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html (right): https://codereview.chromium.org/1974033003/diff/1/third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html#newcode63 third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html:63: assert_array_equals(notification.vibrate, []); On 2016/05/12 15:04:59, Michael ...
4 years, 7 months ago (2016-05-12 15:10:14 UTC) #6
domenic
> to also freeze the individual NotificationAction objects contained therein This is a spec violation ...
4 years, 7 months ago (2016-05-12 15:53:15 UTC) #7
domenic
On 2016/05/12 at 15:53:15, domenic wrote: > > to also freeze the individual NotificationAction objects ...
4 years, 7 months ago (2016-05-12 15:53:50 UTC) #8
Peter Beverloo
I have added [SameObject] to both properties by storing them in ScriptValue class-members, but am ...
4 years, 7 months ago (2016-05-12 17:41:46 UTC) #10
bashi
On 2016/05/12 17:41:46, Peter Beverloo wrote: > I have added [SameObject] to both properties by ...
4 years, 7 months ago (2016-05-12 23:34:31 UTC) #11
bashi
+yukishiino@
4 years, 7 months ago (2016-05-12 23:35:10 UTC) #13
Yuki
On 2016/05/12 23:35:10, bashi1 wrote: > +yukishiino@ Just started to implement [SameObject] at http://crrev.com/1980553002 . ...
4 years, 7 months ago (2016-05-13 15:23:11 UTC) #14
Peter Beverloo
Fantastic, I rebased on top of your CL yukishiino@! :D Would you mind confirming my ...
4 years, 7 months ago (2016-05-16 12:47:52 UTC) #15
Yuki
LGTM. Sorry for having you guys wait for a long time, both FrozenArray and [SameObject]. ...
4 years, 7 months ago (2016-05-16 13:23:08 UTC) #16
Yuki
On 2016/05/16 13:23:08, Yuki wrote: > LGTM. Sorry for having you guys wait for a ...
4 years, 7 months ago (2016-05-17 02:09:47 UTC) #17
bashi
https://codereview.chromium.org/1974033003/diff/60001/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/1974033003/diff/60001/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode334 third_party/WebKit/Source/modules/notifications/Notification.cpp:334: actions[i] = freezeV8Object(toV8(action, scriptState), scriptState->isolate()); Not directly related to ...
4 years, 7 months ago (2016-05-17 02:42:12 UTC) #18
Yuki
Sorry for the revert of my CL. I landed a new support of [SameObject] and ...
4 years, 6 months ago (2016-05-27 13:10:46 UTC) #20
Peter Beverloo
Yuki: Please take another look— done, and tests seem to pass :) +Rick for Web ...
4 years, 5 months ago (2016-06-29 18:06:09 UTC) #22
Rick Byers
On 2016/06/29 18:06:09, Peter Beverloo wrote: > Yuki: Please take another look— done, and tests ...
4 years, 5 months ago (2016-06-29 18:24:17 UTC) #24
Rick Byers
Also, please be sure to update the chromestatus entry with the appropriate milestone (guessing you ...
4 years, 5 months ago (2016-06-29 18:25:06 UTC) #25
Yuki
LGTM. Thank you for patiently working on this.
4 years, 5 months ago (2016-06-30 03:43:12 UTC) #26
Peter Beverloo
Thanks Rick and Yuki! I'll update the ChromeStatus entry once this lands.
4 years, 5 months ago (2016-06-30 15:37:53 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1974033003/80001
4 years, 5 months ago (2016-06-30 15:38:18 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-30 16:16:30 UTC) #32
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 16:20:01 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b16af0ae12f9d37558e95cb92222c4313df098c0
Cr-Commit-Position: refs/heads/master@{#403191}

Powered by Google App Engine
This is Rietveld 408576698