{"action":"created","issue":{"url":"https://api.github.com/repos/hypothesis/h/issues/3141","repository_url":"https://api.github.com/repos/hypothesis/h","labels_url":"https://api.github.com/repos/hypothesis/h/issues/3141/labels{/name}","comments_url":"https://api.github.com/repos/hypothesis/h/issues/3141/comments","events_url":"https://api.github.com/repos/hypothesis/h/issues/3141/events","html_url":"https://github.com/hypothesis/h/pull/3141","id":143287376,"number":3141,"title":"CSP Violation: form input onfocus","user":{"login":"chdorner","id":112063,"avatar_url":"https://avatars.githubusercontent.com/u/112063?v=3","gravatar_id":"","url":"https://api.github.com/users/chdorner","html_url":"https://github.com/chdorner","followers_url":"https://api.github.com/users/chdorner/followers","following_url":"https://api.github.com/users/chdorner/following{/other_user}","gists_url":"https://api.github.com/users/chdorner/gists{/gist_id}","starred_url":"https://api.github.com/users/chdorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chdorner/subscriptions","organizations_url":"https://api.github.com/users/chdorner/orgs","repos_url":"https://api.github.com/users/chdorner/repos","events_url":"https://api.github.com/users/chdorner/events{/privacy}","received_events_url":"https://api.github.com/users/chdorner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-24T16:03:32Z","updated_at":"2016-03-29T18:26:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hypothesis/h/pulls/3141","html_url":"https://github.com/hypothesis/h/pull/3141","diff_url":"https://github.com/hypothesis/h/pull/3141.diff","patch_url":"https://github.com/hypothesis/h/pull/3141.patch"},"body":"I'm not sure if this is the correct way to handle this, so I've held off writing tests.\r\n\r\nOne thing I noticed is that this doesn't work right after a page load, presumably because the `focus` event is fired before all the JS code is loaded (as described [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autofocus))."},"comment":{"url":"https://api.github.com/repos/hypothesis/h/issues/comments/203038656","html_url":"https://github.com/hypothesis/h/pull/3141#issuecomment-203038656","issue_url":"https://api.github.com/repos/hypothesis/h/issues/3141","id":203038656,"user":{"login":"chdorner","id":112063,"avatar_url":"https://avatars.githubusercontent.com/u/112063?v=3","gravatar_id":"","url":"https://api.github.com/users/chdorner","html_url":"https://github.com/chdorner","followers_url":"https://api.github.com/users/chdorner/followers","following_url":"https://api.github.com/users/chdorner/following{/other_user}","gists_url":"https://api.github.com/users/chdorner/gists{/gist_id}","starred_url":"https://api.github.com/users/chdorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chdorner/subscriptions","organizations_url":"https://api.github.com/users/chdorner/orgs","repos_url":"https://api.github.com/users/chdorner/repos","events_url":"https://api.github.com/users/chdorner/events{/privacy}","received_events_url":"https://api.github.com/users/chdorner/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T18:26:36Z","updated_at":"2016-03-29T18:26:36Z","body":"Thanks @robertknight. I've fixed these issues, and added tests. This is now ready for a final review."}}