{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/notifications/issues/34","labels_url":"https://api.github.com/repos/whatwg/notifications/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/notifications/issues/34/comments","events_url":"https://api.github.com/repos/whatwg/notifications/issues/34/events","html_url":"https://github.com/whatwg/notifications/issues/34","id":59367151,"number":34,"title":"new Notification succeeds even if permission is \"denied\"","user":{"login":"owencm","id":279720,"avatar_url":"https://avatars.githubusercontent.com/u/279720?v=3","gravatar_id":"","url":"https://api.github.com/users/owencm","html_url":"https://github.com/owencm","followers_url":"https://api.github.com/users/owencm/followers","following_url":"https://api.github.com/users/owencm/following{/other_user}","gists_url":"https://api.github.com/users/owencm/gists{/gist_id}","starred_url":"https://api.github.com/users/owencm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owencm/subscriptions","organizations_url":"https://api.github.com/users/owencm/orgs","repos_url":"https://api.github.com/users/owencm/repos","events_url":"https://api.github.com/users/owencm/events{/privacy}","received_events_url":"https://api.github.com/users/owencm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-28T23:56:58Z","updated_at":"2015-03-01T09:17:47Z","closed_at":null,"body":"As a developer I think it's strange that calling new Notification without appropriate permission succeeds and returns a notification object as if it was displayed.\r\n\r\nI would expect it to throw an error or somehow indicate the call failed."},"comment":{"url":"https://api.github.com/repos/whatwg/notifications/issues/comments/76589135","html_url":"https://github.com/whatwg/notifications/issues/34#issuecomment-76589135","issue_url":"https://api.github.com/repos/whatwg/notifications/issues/34","id":76589135,"user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T09:17:47Z","updated_at":"2015-03-01T09:17:47Z","body":"It seems unlikely we can change this. The reasoning was that code creating notifications might not wish to have to deal with permissions."}}