{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/web-nfc/issues/3","labels_url":"https://api.github.com/repos/w3c/web-nfc/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/w3c/web-nfc/issues/3/comments","events_url":"https://api.github.com/repos/w3c/web-nfc/issues/3/events","html_url":"https://github.com/w3c/web-nfc/issues/3","id":61175966,"number":3,"title":"Suggest a permission UI flow","user":{"login":"zolkis","id":996058,"avatar_url":"https://avatars.githubusercontent.com/u/996058?v=3","gravatar_id":"","url":"https://api.github.com/users/zolkis","html_url":"https://github.com/zolkis","followers_url":"https://api.github.com/users/zolkis/followers","following_url":"https://api.github.com/users/zolkis/following{/other_user}","gists_url":"https://api.github.com/users/zolkis/gists{/gist_id}","starred_url":"https://api.github.com/users/zolkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolkis/subscriptions","organizations_url":"https://api.github.com/users/zolkis/orgs","repos_url":"https://api.github.com/users/zolkis/repos","events_url":"https://api.github.com/users/zolkis/events{/privacy}","received_events_url":"https://api.github.com/users/zolkis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-13T18:32:33Z","updated_at":"2015-08-19T06:59:51Z","closed_at":null,"body":"_From @jyasskin on February 7, 2015 2:59_\n\nThe [NFC spec](https://w3c.github.io/nfc/index.html), or surrounding documentation, should suggest one or more UI flows that UAs might find acceptable, along with some explanation of the security concerns leading to those options.\r\n\r\nFor example, maybe `setPushMessage()` is allowed with no UI but only takes effect during times that the calling document is in the foreground. This would be safe because the user is likely to have a clear understanding that tapping two NFC objects is likely to let their foreground applications communicate.\r\n\r\nMaybe `watch()` is also allowed with no UI. Then, when a matching tag or peer is tapped, the UA shows a chooser between the sites that have made matching `watch()` calls. When the user picks a site, that site opens and gets to communicate with the tag or peer. It would be important not to skip the chooser when only one site is watching, since the chooser is the permission UI. Please also evaluate whether it's possible to have a \"remember this choice\" checkbox in the chooser, given the data that's available to the UA.\r\n\r\nMaybe `write()` requires a yes/no prompt because it can destroy data. Or, maybe it can run without a prompt when its document is in the foreground because the user understands that foreground apps on touching NFC devices can communicate.\r\n\r\nI'm not sure whether it's important to hide a document's \"foreground\" status from JS running in that document.\r\n\r\n@egmorant, the PM of the Chrome security UI group.\n\n_Copied from original issue: w3c/nfc#63_"},"comment":{"url":"https://api.github.com/repos/w3c/web-nfc/issues/comments/132465913","html_url":"https://github.com/w3c/web-nfc/issues/3#issuecomment-132465913","issue_url":"https://api.github.com/repos/w3c/web-nfc/issues/3","id":132465913,"user":{"login":"kenchris","id":1101339,"avatar_url":"https://avatars.githubusercontent.com/u/1101339?v=3","gravatar_id":"","url":"https://api.github.com/users/kenchris","html_url":"https://github.com/kenchris","followers_url":"https://api.github.com/users/kenchris/followers","following_url":"https://api.github.com/users/kenchris/following{/other_user}","gists_url":"https://api.github.com/users/kenchris/gists{/gist_id}","starred_url":"https://api.github.com/users/kenchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenchris/subscriptions","organizations_url":"https://api.github.com/users/kenchris/orgs","repos_url":"https://api.github.com/users/kenchris/repos","events_url":"https://api.github.com/users/kenchris/events{/privacy}","received_events_url":"https://api.github.com/users/kenchris/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T06:59:51Z","updated_at":"2015-08-19T06:59:51Z","body":"Pretty good points. I am on board with this"}}