Skip to content

After implemented RWS, still get prompt state and need user gesture to get permission? #175

Discussion options

You must be logged in to vote

Hi @lqw1111, thanks for testing this!

My expectation is that, we can access iframe.com's cookies from web.com without using a user gesture. It's fine to call requestStorageAccess API to access the cookies, but I expected that I can always get the state == grant if I have implemented RSW.

This isn't quite how it works. RWS just allows Chrome to avoid having to show a storage access permission prompt in some cases; it doesn't preemptively grant storage access to the sites within the RWS. So in other words, I would expect the flow to look like:

  1. Load web.com page with iframe.com iframe.
  2. The iframe queries the storage-access permission.
    1. If the state is granted, the iframe immediately calls d…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@lqw1111
Comment options

@cfredric
Comment options

@lqw1111
Comment options

@cfredric
Comment options

@lqw1111
Comment options

Answer selected by lqw1111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants