New issue
Advanced search Search tips

Issue 739962 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 1
Type: Bug



Sign in to add a comment

[Budget-API] Able to reserve budget when notification is blocked

Project Member Reported by aluo@chromium.org, Jul 7 2017

Issue description

budget.reserve() returns success as long as budget is available and it does deplete the budget.  Only getBudget() is returning 0 when notifications are not allowed.

Device:
Nexus 6P, MDB08O, Chrome Beta 60.0.3112.50

Steps:
1) Enable exp web plat features in chrome://flags
2) Visit aluochromium.github.io
3) Set site-engagement to 100 in chrome://site-engagement
4) In page, press "Spend Budget"

Expected:
The reserve should fail due to 0 budget since notifications are still blocked for this page.

Actual:
The reserve succeeded since budget of 48 was calculated, although budget.getBudget() is returning 0.

 

Comment 1 by aluo@chromium.org, Jul 7 2017

Actually I'm not sure if this is wai since https://chromium.googlesource.com/chromium/src/+/9c993f78366636eb3b4b4f0a3749a52862c96ee5 only mentions the getBudget call being affected...

Comment 2 by aluo@chromium.org, Jul 7 2017

Components: Blink>PushAPI

Comment 3 by joh...@chromium.org, Jul 18 2017

Status: Assigned (was: Untriaged)
It definitely seems that navigator.budget.reserve("silent-push") should fail if notification permission was blocked.

Comment 4 by peter@chromium.org, Jan 5 2018

Status: WontFix (was: Assigned)
We're planning to deprecate and remove the Budget API, so marking related bugs as WontFix.

Sign in to add a comment