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

Issue 2863443002: Implement and ship PushManager.supportedContentEncodings (Closed)

Created:
3 years, 7 months ago by Peter Beverloo
Modified:
3 years, 7 months ago
CC:
awdf+watch_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, harkness+watch_chromium.org, johnme+watch_chromium.org, jshin+watch_chromium.org, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement and ship PushManager.supportedContentEncodings This static property can be used by developers to check which Content-Encoding values are supported by the implementation for the encrypted message payloads that a push message can carry. Right now we only support "aesgcm", which corresponds to draft-ietf-webpush-encryption-05. Support for the latest version of the encryption scheme, identified by "aes128gcm" and required by the specification, is tracked by crbug.com/679789. This CL also exposes the PushManager, PushSubscription, PushSubscriptionOptions and extensions to the ServiceWorkerRegistration interfaces in all workers, matching availability of SWRegistration. Specification: https://w3c.github.io/push-api/#dom-pushmanager-supportedcontentencodings Intent to Implement and Ship: https://groups.google.com/a/chromium.org/d/topic/blink-dev/jNg1Zth2XrI/discussion BUG=718020 Review-Url: https://codereview.chromium.org/2863443002 Cr-Commit-Position: refs/heads/master@{#472146} Committed: https://chromium.googlesource.com/chromium/src/+/60b0f2c0bbf2fbb96aa09a781f5adac7981832df

Patch Set 1 #

Patch Set 2 : Implement and ship PushManager.supportedContentEncodings #

Total comments: 1

Patch Set 3 : Implement and ship PushManager.supportedContentEncodings #

Total comments: 14

Patch Set 4 : Implement and ship PushManager.supportedContentEncodings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -5 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/push_messaging/interfaces.html View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/push_messaging/pushmanager-supported-content-encodings.html View 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 1 chunk +20 lines, -0 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 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 1 chunk +20 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 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 3 chunks +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushManager.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushManager.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushManager.idl View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushSubscription.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/ServiceWorkerRegistrationPush.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/bindings/V8PrivateProperty.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (21 generated)
Peter Beverloo
+johnme for push +jochen for webexposed +jochen/haraken/bashi for bindings change https://codereview.chromium.org/2863443002/diff/20001/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl File third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl (right): https://codereview.chromium.org/2863443002/diff/20001/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl#newcode24 ...
3 years, 7 months ago (2017-05-05 13:18:59 UTC) #9
haraken
+yukishiino I was thinking that [SaveSameObject] is just a performance optimization (i.e., we should not ...
3 years, 7 months ago (2017-05-05 14:04:23 UTC) #11
Peter Beverloo
On 2017/05/05 14:04:23, haraken wrote: > +yukishiino > > I was thinking that [SaveSameObject] is ...
3 years, 7 months ago (2017-05-05 14:23:53 UTC) #12
Peter Beverloo
On 2017/05/05 14:23:53, Peter Beverloo wrote: > On 2017/05/05 14:04:23, haraken wrote: > > +yukishiino ...
3 years, 7 months ago (2017-05-05 14:24:07 UTC) #13
haraken
On 2017/05/05 14:24:07, Peter Beverloo wrote: > On 2017/05/05 14:23:53, Peter Beverloo wrote: > > ...
3 years, 7 months ago (2017-05-05 14:39:58 UTC) #14
Yuki
On 2017/05/05 14:39:58, haraken wrote: > On 2017/05/05 14:24:07, Peter Beverloo wrote: > > On ...
3 years, 7 months ago (2017-05-08 07:48:20 UTC) #21
haraken
On 2017/05/08 07:48:20, Yuki(ooo_til_may8) wrote: > On 2017/05/05 14:39:58, haraken wrote: > > On 2017/05/05 ...
3 years, 7 months ago (2017-05-08 07:52:31 UTC) #22
Yuki
On 2017/05/08 07:52:31, haraken wrote: > On 2017/05/08 07:48:20, Yuki(ooo_til_may8) wrote: > > On 2017/05/05 ...
3 years, 7 months ago (2017-05-08 09:04:07 UTC) #23
Yuki
LGTM on my side.
3 years, 7 months ago (2017-05-08 09:07:08 UTC) #24
haraken
bindings LGTM
3 years, 7 months ago (2017-05-08 09:22:26 UTC) #25
johnme
push_messaging lgtm with nits https://codereview.chromium.org/2863443002/diff/40001/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp File third_party/WebKit/Source/modules/push_messaging/PushManager.cpp (right): https://codereview.chromium.org/2863443002/diff/40001/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp#newcode47 third_party/WebKit/Source/modules/push_messaging/PushManager.cpp:47: return Vector<String>({"aesgcm"}); Nit: should this ...
3 years, 7 months ago (2017-05-08 14:36:17 UTC) #26
Peter Beverloo
Thanks John, PTAL - a few questions https://codereview.chromium.org/2863443002/diff/40001/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp File third_party/WebKit/Source/modules/push_messaging/PushManager.cpp (right): https://codereview.chromium.org/2863443002/diff/40001/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp#newcode47 third_party/WebKit/Source/modules/push_messaging/PushManager.cpp:47: return Vector<String>({"aesgcm"}); ...
3 years, 7 months ago (2017-05-08 15:00:12 UTC) #27
johnme
still lgtm :) https://codereview.chromium.org/2863443002/diff/40001/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp File third_party/WebKit/Source/modules/push_messaging/PushManager.cpp (right): https://codereview.chromium.org/2863443002/diff/40001/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp#newcode47 third_party/WebKit/Source/modules/push_messaging/PushManager.cpp:47: return Vector<String>({"aesgcm"}); On 2017/05/08 15:00:11, Peter ...
3 years, 7 months ago (2017-05-08 15:09:27 UTC) #28
Peter Beverloo
Thanks! https://codereview.chromium.org/2863443002/diff/40001/third_party/WebKit/Source/modules/push_messaging/PushSubscription.idl File third_party/WebKit/Source/modules/push_messaging/PushSubscription.idl (right): https://codereview.chromium.org/2863443002/diff/40001/third_party/WebKit/Source/modules/push_messaging/PushSubscription.idl#newcode13 third_party/WebKit/Source/modules/push_messaging/PushSubscription.idl:13: Exposed=(Window,Worker), On 2017/05/08 15:09:27, johnme wrote: > On ...
3 years, 7 months ago (2017-05-08 15:53:15 UTC) #29
Peter Beverloo
jochen - PTAL for webexposed OWNERS, the I2I&S passed :)
3 years, 7 months ago (2017-05-16 14:20:07 UTC) #30
jochen (gone - plz use gerrit)
lgtm
3 years, 7 months ago (2017-05-16 14:25:14 UTC) #31
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/2863443002/60001
3 years, 7 months ago (2017-05-16 14:37:38 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/455879)
3 years, 7 months ago (2017-05-16 16:14:03 UTC) #36
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/2863443002/60001
3 years, 7 months ago (2017-05-16 16:35:32 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 17:30:33 UTC) #41
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/60b0f2c0bbf2fbb96aa09a781f5a...

Powered by Google App Engine
This is Rietveld 408576698