Persistent storage permission not granted for push notification-enabled site
Reported by
ja...@onesignal.com,
Dec 9 2016
|
|||||||
Issue descriptionUserAgent: 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
,
Dec 12 2016
,
Dec 12 2016
,
Dec 12 2016
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!
,
Dec 13 2016
I see "Storage will not be cleared except by explicit user action" on tip of tree.
,
Dec 14 2016
Disallowing cookies can block persistent storage permission. Can you please verify that cookies are not blocked in chrome://settings/content.
,
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.
,
Jan 19 2017
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
,
Jan 20 2017
,
Jan 27 2017
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 |
|||||||
Comment 1 by ja...@onesignal.com
, Dec 9 2016