{"action":"closed","issue":{"url":"https://api.github.com/repos/whatwg/storage/issues/9","repository_url":"https://api.github.com/repos/whatwg/storage","labels_url":"https://api.github.com/repos/whatwg/storage/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/storage/issues/9/comments","events_url":"https://api.github.com/repos/whatwg/storage/issues/9/events","html_url":"https://github.com/whatwg/storage/issues/9","id":101525366,"number":9,"title":"Allow script to request permission only if there would be no prompt","user":{"login":"davidsgrogan","id":1801875,"avatar_url":"https://avatars.githubusercontent.com/u/1801875?v=3","gravatar_id":"","url":"https://api.github.com/users/davidsgrogan","html_url":"https://github.com/davidsgrogan","followers_url":"https://api.github.com/users/davidsgrogan/followers","following_url":"https://api.github.com/users/davidsgrogan/following{/other_user}","gists_url":"https://api.github.com/users/davidsgrogan/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsgrogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsgrogan/subscriptions","organizations_url":"https://api.github.com/users/davidsgrogan/orgs","repos_url":"https://api.github.com/users/davidsgrogan/repos","events_url":"https://api.github.com/users/davidsgrogan/events{/privacy}","received_events_url":"https://api.github.com/users/davidsgrogan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-08-17T22:43:47Z","updated_at":"2016-03-31T13:52:53Z","closed_at":"2016-03-31T13:52:53Z","body":"We've heard from sites that they don't want to prompt the user for this capability and would only request permission if the browser would autogrant it. We are planning on autogranting if the origin has a high \"engagement score\" for this user. But we want the origin to have to request the permission, we aren't going to opt the origin in to persistence if it doesn't ask for it.\r\n\r\nSo we'd like a way for an origin to request permission only if the user wouldn't be prompted. One way would be to add an optional parameter to requestPersistent(): `requestPersistent{\"noPrompt\": true})`. Another would be to add a fourth permission, `\"wouldBeAutoGranted\"` or something, that would let the site know that `requestPersistent()` would change the default box's mode to \"persistent\" without prompting. I'm sure there are other strong possibilities too.\r\n\r\n/cc @inexorabletash"}}