New issue
Advanced search Search tips

Issue 673033 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Persistent storage permission not granted for push notification-enabled site

Reported by ja...@onesignal.com, Dec 9 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36

Steps to reproduce the problem:
Test Case Reproduction Instructions
==========================

1. Download the provided test case.

2. Run `python -m SimpleHTTPServer` in this directory to spin up a webserver.

3. In Chrome 55, visit http://localhost:8000.

4. Open the Developer Tools console to observe the test results. Test results can be re-run since data is cleared between refreshes.

On The Web Reproduction Instructions
============================

1. Visit https://producthunt.com. Accept push notifications.

2. Wait for the welcome notification.

3. Open the Developer Tools Console and run:

if (navigator.storage && navigator.storage.persist)
  navigator.storage.persist().then(granted => {
    if (granted)
      alert("Storage will not be cleared except by explicit user action");
    else
      alert("Storage may be cleared by the UA under storage pressure.");
  });

4. I get an alert saying "Storage may be cleared by the UA under storage pressure.".

What is the expected behavior?
According to https://developers.google.com/web/updates/2016/11/nic55#persistent-storage, sites that have push notifications enabled are automatically granted the storage persistence permission.

What went wrong?
Storage persistence permission not granted.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 55.0.2883.75  Channel: n/a
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 23.0 r0
 
persistent-storage-push-bug.zip
2.4 KB Download
This looks like just an issue with my Chrome profile. Creating a new Chrome profile and following the steps above works (I get the "Storage will not be cleared except by explicit user action"). Using Chrome Canary works, and testing on another machines works and gives the expected result.

Is there anything I should look for in my profile or can provide that might help identify the issue?

Comment 2 by ajha@chromium.org, Dec 12 2016

Labels: M-55
Labels: prestable-55.0.2883.75
Labels: Needs-Feedback
Sounds like this issue is due to corrupted profile, could you please recheck this issue by upgrading chrome to latest stable M55-55.0.2883.87 in a new profile.

Thanks! 
I see "Storage will not be cleared except by explicit user action" on tip of tree. 
Disallowing cookies can block persistent storage permission. Can you please verify that cookies are not blocked in chrome://settings/content.

Comment 7 by ja...@onesignal.com, Jan 11 2017

Hey Guys,

Sorry for the late reply.

- For my broken Chrome profile, I've verified that cookies are not blocked in chrome://settings/content. My option value is "Allow local data to be set (recommended)"

This isn't any new information, but I just re-tested this in my *broken* Chrome profile and managed to snag a screencap: http://imgur.com/a/YX0q9.

As mentioned in Comment #1 though, I was able to see the correct message "Storage will not be cleared except by explicit user action" when using a brand new Chrome profile, so it just looks like my profile is corrupted.

Project Member

Comment 8 by sheriffbot@chromium.org, Jan 19 2017

Labels: -Needs-Feedback Needs-Review
Owner: brajkumar@chromium.org
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: TE-NeedsTriageHelp
Owner: ----
Status: WontFix (was: Unconfirmed)
I also got the correct output with Chrome 55 and 58. So, without any logs or stack traces, I'm afraid there's nothing actionable for us here.

FWIW, producthunt.com did not prompt me for push notifications permissions, so I used https://gauntface.github.io/simple-push-demo/

Sign in to add a comment