New issue
Advanced search Search tips

Issue 802280 link

Starred by 7 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

applicationServerKey does not accept a base64url encoded value

Reported by alexen...@gmail.com, Jan 16 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.85 Safari/537.36

Steps to reproduce the problem:
1. Create an empty file service-worker.js
2. Run the test case

What is the expected behavior?
The push subscription should be created successfully, applicationServerKey should accept a url encoded base64 string

https://w3c.github.io/push-api/#dom-pushsubscriptionoptions-applicationserverkey

What went wrong?
An error is thrown

Uncaught (in promise) TypeError: Failed to execute 'subscribe' on 'PushManager': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'
    at push-bug.js:8
    at <anonymous>

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 64.0.3282.85  Channel: beta
OS Version: 10.0
Flash Version: Shockwave Flash 28.0 r0
 
push-bug.js
326 bytes View Download
Labels: Needs-Triage-M64

Comment 2 by peter@chromium.org, Jan 16 2018

Labels: -Needs-Triage-M64 Hotlist-GoodFirstBug OS-Android OS-Chrome OS-Linux OS-Mac
Status: Available (was: Unconfirmed)
Thank you for the report! We indeed don't implement this functionality yet, so let me mark this as available.
Owner: hs1217....@samsung.com
i will take issue. and is this needed to write intent to implement and ship?
Status: Started (was: Available)
https://chromium-review.googlesource.com/c/chromium/src/+/1013839
this patch is blocking until wpt test for push-api created.
(https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/-n133nKRZA4)

Sign in to add a comment