{"action":"created","comment":{"url":"https://api.github.com/repos/whatwg/dom/pulls/comments/51980554","id":51980554,"diff_hunk":"@@ -1065,6 +1065,15 @@ seen from the definition above, an <a>event listener</a> is a more broad concept\n method, when invoked, must run these steps:\n \n <ol>\n+ <li>\n+  <p>If the <a>context object</a>'s global object is a {{ServiceWorkerGlobalScope}} object and its\n+  associated <a>service worker</a>'s <a>script resource</a>'s <a>has ever been evaluated flag</a> is\n+  set, <a>throw</a> a <code>TypeError</code>. [[!SW]]","path":"dom.bs","position":7,"original_position":7,"commit_id":"142f047f69ebcac1ede94b4f7486c8e859b59f90","original_commit_id":"77aaf40cb3057616fdc3b565702d08968e000548","user":{"login":"jungkees","id":1331169,"avatar_url":"https://avatars.githubusercontent.com/u/1331169?v=3","gravatar_id":"","url":"https://api.github.com/users/jungkees","html_url":"https://github.com/jungkees","followers_url":"https://api.github.com/users/jungkees/followers","following_url":"https://api.github.com/users/jungkees/following{/other_user}","gists_url":"https://api.github.com/users/jungkees/gists{/gist_id}","starred_url":"https://api.github.com/users/jungkees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungkees/subscriptions","organizations_url":"https://api.github.com/users/jungkees/orgs","repos_url":"https://api.github.com/users/jungkees/repos","events_url":"https://api.github.com/users/jungkees/events{/privacy}","received_events_url":"https://api.github.com/users/jungkees/received_events","type":"User","site_admin":false},"body":"Your help would be appreciated!","created_at":"2016-02-05T05:57:01Z","updated_at":"2016-02-05T05:57:01Z","html_url":"https://github.com/whatwg/dom/pull/155#discussion_r51980554","pull_request_url":"https://api.github.com/repos/whatwg/dom/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/whatwg/dom/pulls/comments/51980554"},"html":{"href":"https://github.com/whatwg/dom/pull/155#discussion_r51980554"},"pull_request":{"href":"https://api.github.com/repos/whatwg/dom/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/whatwg/dom/pulls/155","id":57973002,"html_url":"https://github.com/whatwg/dom/pull/155","diff_url":"https://github.com/whatwg/dom/pull/155.diff","patch_url":"https://github.com/whatwg/dom/pull/155.patch","issue_url":"https://api.github.com/repos/whatwg/dom/issues/155","number":155,"state":"open","locked":false,"title":"Make addEventListener throw for service worker optimization","user":{"login":"jungkees","id":1331169,"avatar_url":"https://avatars.githubusercontent.com/u/1331169?v=3","gravatar_id":"","url":"https://api.github.com/users/jungkees","html_url":"https://github.com/jungkees","followers_url":"https://api.github.com/users/jungkees/followers","following_url":"https://api.github.com/users/jungkees/following{/other_user}","gists_url":"https://api.github.com/users/jungkees/gists{/gist_id}","starred_url":"https://api.github.com/users/jungkees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungkees/subscriptions","organizations_url":"https://api.github.com/users/jungkees/orgs","repos_url":"https://api.github.com/users/jungkees/repos","events_url":"https://api.github.com/users/jungkees/events{/privacy}","received_events_url":"https://api.github.com/users/jungkees/received_events","type":"User","site_admin":false},"body":"To optimize the service worker execution behavior, this change makes\r\naddEventListener throw when it is called after the very first\r\nevaluation of the service worker script.\r\n\r\nSW issue: https://github.com/slightlyoff/ServiceWorker/issues/718","created_at":"2016-02-02T11:20:42Z","updated_at":"2016-02-05T05:57:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4caf82d42bd41eb9ff758a4286e2d174e9609036","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/whatwg/dom/pulls/155/commits","review_comments_url":"https://api.github.com/repos/whatwg/dom/pulls/155/comments","review_comment_url":"https://api.github.com/repos/whatwg/dom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/whatwg/dom/issues/155/comments","statuses_url":"https://api.github.com/repos/whatwg/dom/statuses/142f047f69ebcac1ede94b4f7486c8e859b59f90","head":{"label":"jungkees:addeventlistener-fix","ref":"addeventlistener-fix","sha":"142f047f69ebcac1ede94b4f7486c8e859b59f90","user":{"login":"jungkees","id":1331169,"avatar_url":"https://avatars.githubusercontent.com/u/1331169?v=3","gravatar_id":"","url":"https://api.github.com/users/jungkees","html_url":"https://github.com/jungkees","followers_url":"https://api.github.com/users/jungkees/followers","following_url":"https://api.github.com/users/jungkees/following{/other_user}","gists_url":"https://api.github.com/users/jungkees/gists{/gist_id}","starred_url":"https://api.github.com/users/jungkees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungkees/subscriptions","organizations_url":"https://api.github.com/users/jungkees/orgs","repos_url":"https://api.github.com/users/jungkees/repos","events_url":"https://api.github.com/users/jungkees/events{/privacy}","received_events_url":"https://api.github.com/users/jungkees/received_events","type":"User","site_admin":false},"repo":{"id":50912978,"name":"dom","full_name":"jungkees/dom","owner":{"login":"jungkees","id":1331169,"avatar_url":"https://avatars.githubusercontent.com/u/1331169?v=3","gravatar_id":"","url":"https://api.github.com/users/jungkees","html_url":"https://github.com/jungkees","followers_url":"https://api.github.com/users/jungkees/followers","following_url":"https://api.github.com/users/jungkees/following{/other_user}","gists_url":"https://api.github.com/users/jungkees/gists{/gist_id}","starred_url":"https://api.github.com/users/jungkees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungkees/subscriptions","organizations_url":"https://api.github.com/users/jungkees/orgs","repos_url":"https://api.github.com/users/jungkees/repos","events_url":"https://api.github.com/users/jungkees/events{/privacy}","received_events_url":"https://api.github.com/users/jungkees/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jungkees/dom","description":"DOM Standard","fork":true,"url":"https://api.github.com/repos/jungkees/dom","forks_url":"https://api.github.com/repos/jungkees/dom/forks","keys_url":"https://api.github.com/repos/jungkees/dom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jungkees/dom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jungkees/dom/teams","hooks_url":"https://api.github.com/repos/jungkees/dom/hooks","issue_events_url":"https://api.github.com/repos/jungkees/dom/issues/events{/number}","events_url":"https://api.github.com/repos/jungkees/dom/events","assignees_url":"https://api.github.com/repos/jungkees/dom/assignees{/user}","branches_url":"https://api.github.com/repos/jungkees/dom/branches{/branch}","tags_url":"https://api.github.com/repos/jungkees/dom/tags","blobs_url":"https://api.github.com/repos/jungkees/dom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jungkees/dom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jungkees/dom/git/refs{/sha}","trees_url":"https://api.github.com/repos/jungkees/dom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jungkees/dom/statuses/{sha}","languages_url":"https://api.github.com/repos/jungkees/dom/languages","stargazers_url":"https://api.github.com/repos/jungkees/dom/stargazers","contributors_url":"https://api.github.com/repos/jungkees/dom/contributors","subscribers_url":"https://api.github.com/repos/jungkees/dom/subscribers","subscription_url":"https://api.github.com/repos/jungkees/dom/subscription","commits_url":"https://api.github.com/repos/jungkees/dom/commits{/sha}","git_commits_url":"https://api.github.com/repos/jungkees/dom/git/commits{/sha}","comments_url":"https://api.github.com/repos/jungkees/dom/comments{/number}","issue_comment_url":"https://api.github.com/repos/jungkees/dom/issues/comments{/number}","contents_url":"https://api.github.com/repos/jungkees/dom/contents/{+path}","compare_url":"https://api.github.com/repos/jungkees/dom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jungkees/dom/merges","archive_url":"https://api.github.com/repos/jungkees/dom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jungkees/dom/downloads","issues_url":"https://api.github.com/repos/jungkees/dom/issues{/number}","pulls_url":"https://api.github.com/repos/jungkees/dom/pulls{/number}","milestones_url":"https://api.github.com/repos/jungkees/dom/milestones{/number}","notifications_url":"https://api.github.com/repos/jungkees/dom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jungkees/dom/labels{/name}","releases_url":"https://api.github.com/repos/jungkees/dom/releases{/id}","deployments_url":"https://api.github.com/repos/jungkees/dom/deployments","created_at":"2016-02-02T10:29:03Z","updated_at":"2016-02-02T10:29:04Z","pushed_at":"2016-02-05T05:56:27Z","git_url":"git://github.com/jungkees/dom.git","ssh_url":"git@github.com:jungkees/dom.git","clone_url":"https://github.com/jungkees/dom.git","svn_url":"https://github.com/jungkees/dom","homepage":"https://dom.spec.whatwg.org/","size":42338,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"whatwg:master","ref":"master","sha":"07e9fc014ba54a185cb8c62016f088fd9181be6f","user":{"login":"whatwg","id":2226336,"avatar_url":"https://avatars.githubusercontent.com/u/2226336?v=3","gravatar_id":"","url":"https://api.github.com/users/whatwg","html_url":"https://github.com/whatwg","followers_url":"https://api.github.com/users/whatwg/followers","following_url":"https://api.github.com/users/whatwg/following{/other_user}","gists_url":"https://api.github.com/users/whatwg/gists{/gist_id}","starred_url":"https://api.github.com/users/whatwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatwg/subscriptions","organizations_url":"https://api.github.com/users/whatwg/orgs","repos_url":"https://api.github.com/users/whatwg/repos","events_url":"https://api.github.com/users/whatwg/events{/privacy}","received_events_url":"https://api.github.com/users/whatwg/received_events","type":"Organization","site_admin":false},"repo":{"id":5581406,"name":"dom","full_name":"whatwg/dom","owner":{"login":"whatwg","id":2226336,"avatar_url":"https://avatars.githubusercontent.com/u/2226336?v=3","gravatar_id":"","url":"https://api.github.com/users/whatwg","html_url":"https://github.com/whatwg","followers_url":"https://api.github.com/users/whatwg/followers","following_url":"https://api.github.com/users/whatwg/following{/other_user}","gists_url":"https://api.github.com/users/whatwg/gists{/gist_id}","starred_url":"https://api.github.com/users/whatwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatwg/subscriptions","organizations_url":"https://api.github.com/users/whatwg/orgs","repos_url":"https://api.github.com/users/whatwg/repos","events_url":"https://api.github.com/users/whatwg/events{/privacy}","received_events_url":"https://api.github.com/users/whatwg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/whatwg/dom","description":"DOM Standard","fork":false,"url":"https://api.github.com/repos/whatwg/dom","forks_url":"https://api.github.com/repos/whatwg/dom/forks","keys_url":"https://api.github.com/repos/whatwg/dom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whatwg/dom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whatwg/dom/teams","hooks_url":"https://api.github.com/repos/whatwg/dom/hooks","issue_events_url":"https://api.github.com/repos/whatwg/dom/issues/events{/number}","events_url":"https://api.github.com/repos/whatwg/dom/events","assignees_url":"https://api.github.com/repos/whatwg/dom/assignees{/user}","branches_url":"https://api.github.com/repos/whatwg/dom/branches{/branch}","tags_url":"https://api.github.com/repos/whatwg/dom/tags","blobs_url":"https://api.github.com/repos/whatwg/dom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whatwg/dom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whatwg/dom/git/refs{/sha}","trees_url":"https://api.github.com/repos/whatwg/dom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whatwg/dom/statuses/{sha}","languages_url":"https://api.github.com/repos/whatwg/dom/languages","stargazers_url":"https://api.github.com/repos/whatwg/dom/stargazers","contributors_url":"https://api.github.com/repos/whatwg/dom/contributors","subscribers_url":"https://api.github.com/repos/whatwg/dom/subscribers","subscription_url":"https://api.github.com/repos/whatwg/dom/subscription","commits_url":"https://api.github.com/repos/whatwg/dom/commits{/sha}","git_commits_url":"https://api.github.com/repos/whatwg/dom/git/commits{/sha}","comments_url":"https://api.github.com/repos/whatwg/dom/comments{/number}","issue_comment_url":"https://api.github.com/repos/whatwg/dom/issues/comments{/number}","contents_url":"https://api.github.com/repos/whatwg/dom/contents/{+path}","compare_url":"https://api.github.com/repos/whatwg/dom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whatwg/dom/merges","archive_url":"https://api.github.com/repos/whatwg/dom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whatwg/dom/downloads","issues_url":"https://api.github.com/repos/whatwg/dom/issues{/number}","pulls_url":"https://api.github.com/repos/whatwg/dom/pulls{/number}","milestones_url":"https://api.github.com/repos/whatwg/dom/milestones{/number}","notifications_url":"https://api.github.com/repos/whatwg/dom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whatwg/dom/labels{/name}","releases_url":"https://api.github.com/repos/whatwg/dom/releases{/id}","deployments_url":"https://api.github.com/repos/whatwg/dom/deployments","created_at":"2012-08-28T05:59:06Z","updated_at":"2016-02-04T17:21:26Z","pushed_at":"2016-02-05T05:56:27Z","git_url":"git://github.com/whatwg/dom.git","ssh_url":"git@github.com:whatwg/dom.git","clone_url":"https://github.com/whatwg/dom.git","svn_url":"https://github.com/whatwg/dom","homepage":"https://dom.spec.whatwg.org/","size":42806,"stargazers_count":139,"watchers_count":139,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":29,"forks":32,"open_issues":29,"watchers":139,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/whatwg/dom/pulls/155"},"html":{"href":"https://github.com/whatwg/dom/pull/155"},"issue":{"href":"https://api.github.com/repos/whatwg/dom/issues/155"},"comments":{"href":"https://api.github.com/repos/whatwg/dom/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/whatwg/dom/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/whatwg/dom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/whatwg/dom/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/whatwg/dom/statuses/142f047f69ebcac1ede94b4f7486c8e859b59f90"}}}}