{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/blok/pulls/comments/74636745","id":74636745,"diff_hunk":"@@ -1,8 +1,38 @@\n-function allowRequest (tabID, totalExecTime, startDateTime) {\n+const {log} = require('./log')\n+const {hostInEntity} = require('./lists')\n+\n+function requestAllower (tabID, totalExecTime, startDateTime) {\n   totalExecTime[tabID] += Date.now() - startDateTime\n   return {}\n }\n \n+function getRequestEntity (entityList, originTopHost, requestTopHost, mainFrameOriginTopHost) {\n+  var requestEntityName\n+  let sameEntity = false\n+  for (let entityName in entityList) {\n+    var entity = entityList[entityName]\n+    var requestIsEntityResource = false\n+    var originIsEntityProperty = false\n+    var mainFrameOriginIsEntityProperty = false","path":"js/requests.js","position":17,"original_position":17,"commit_id":"3909fe5e7f0d5d539e88494ce5127ee331fd4d2a","original_commit_id":"3909fe5e7f0d5d539e88494ce5127ee331fd4d2a","user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"body":"Not sure if you want to convert these `var`s to `let` or `const` (or if Standard cares about that). But block scoping is fun.","created_at":"2016-08-12T18:18:03Z","updated_at":"2016-08-12T18:18:03Z","html_url":"https://github.com/mozilla/blok/pull/104#discussion_r74636745","pull_request_url":"https://api.github.com/repos/mozilla/blok/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/mozilla/blok/pulls/comments/74636745"},"html":{"href":"https://github.com/mozilla/blok/pull/104#discussion_r74636745"},"pull_request":{"href":"https://api.github.com/repos/mozilla/blok/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/blok/pulls/104","id":80963022,"html_url":"https://github.com/mozilla/blok/pull/104","diff_url":"https://github.com/mozilla/blok/pull/104.diff","patch_url":"https://github.com/mozilla/blok/pull/104.patch","issue_url":"https://api.github.com/repos/mozilla/blok/issues/104","number":104,"state":"open","locked":false,"title":"for #26: refactor: new getRequestEntity function","user":{"login":"groovecoder","id":71928,"avatar_url":"https://avatars.githubusercontent.com/u/71928?v=3","gravatar_id":"","url":"https://api.github.com/users/groovecoder","html_url":"https://github.com/groovecoder","followers_url":"https://api.github.com/users/groovecoder/followers","following_url":"https://api.github.com/users/groovecoder/following{/other_user}","gists_url":"https://api.github.com/users/groovecoder/gists{/gist_id}","starred_url":"https://api.github.com/users/groovecoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groovecoder/subscriptions","organizations_url":"https://api.github.com/users/groovecoder/orgs","repos_url":"https://api.github.com/users/groovecoder/repos","events_url":"https://api.github.com/users/groovecoder/events{/privacy}","received_events_url":"https://api.github.com/users/groovecoder/received_events","type":"User","site_admin":false},"body":"@rpl - r?","created_at":"2016-08-11T14:03:25Z","updated_at":"2016-08-12T18:18:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b97608e200b48b285da584bca919f87fc3ca66d5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/blok/pulls/104/commits","review_comments_url":"https://api.github.com/repos/mozilla/blok/pulls/104/comments","review_comment_url":"https://api.github.com/repos/mozilla/blok/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/blok/issues/104/comments","statuses_url":"https://api.github.com/repos/mozilla/blok/statuses/3909fe5e7f0d5d539e88494ce5127ee331fd4d2a","head":{"label":"mozilla:refactor-filterRequest-more-26","ref":"refactor-filterRequest-more-26","sha":"3909fe5e7f0d5d539e88494ce5127ee331fd4d2a","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":60879296,"name":"blok","full_name":"mozilla/blok","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/blok","description":"Web Extension implementation of Firefox tracking protection","fork":false,"url":"https://api.github.com/repos/mozilla/blok","forks_url":"https://api.github.com/repos/mozilla/blok/forks","keys_url":"https://api.github.com/repos/mozilla/blok/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/blok/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/blok/teams","hooks_url":"https://api.github.com/repos/mozilla/blok/hooks","issue_events_url":"https://api.github.com/repos/mozilla/blok/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/blok/events","assignees_url":"https://api.github.com/repos/mozilla/blok/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/blok/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/blok/tags","blobs_url":"https://api.github.com/repos/mozilla/blok/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/blok/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/blok/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/blok/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/blok/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/blok/languages","stargazers_url":"https://api.github.com/repos/mozilla/blok/stargazers","contributors_url":"https://api.github.com/repos/mozilla/blok/contributors","subscribers_url":"https://api.github.com/repos/mozilla/blok/subscribers","subscription_url":"https://api.github.com/repos/mozilla/blok/subscription","commits_url":"https://api.github.com/repos/mozilla/blok/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/blok/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/blok/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/blok/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/blok/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/blok/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/blok/merges","archive_url":"https://api.github.com/repos/mozilla/blok/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/blok/downloads","issues_url":"https://api.github.com/repos/mozilla/blok/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/blok/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/blok/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/blok/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/blok/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/blok/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/blok/deployments","created_at":"2016-06-10T21:59:33Z","updated_at":"2016-08-07T05:52:31Z","pushed_at":"2016-08-12T15:26:37Z","git_url":"git://github.com/mozilla/blok.git","ssh_url":"git@github.com:mozilla/blok.git","clone_url":"https://github.com/mozilla/blok.git","svn_url":"https://github.com/mozilla/blok","homepage":"https://public.etherpad-mozilla.org/p/tracking-protection-coordination","size":21129,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":16,"forks":6,"open_issues":16,"watchers":3,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"ebd920f2655047c8e393e6084424bc8b575e7153","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":60879296,"name":"blok","full_name":"mozilla/blok","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/blok","description":"Web Extension implementation of Firefox tracking protection","fork":false,"url":"https://api.github.com/repos/mozilla/blok","forks_url":"https://api.github.com/repos/mozilla/blok/forks","keys_url":"https://api.github.com/repos/mozilla/blok/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/blok/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/blok/teams","hooks_url":"https://api.github.com/repos/mozilla/blok/hooks","issue_events_url":"https://api.github.com/repos/mozilla/blok/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/blok/events","assignees_url":"https://api.github.com/repos/mozilla/blok/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/blok/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/blok/tags","blobs_url":"https://api.github.com/repos/mozilla/blok/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/blok/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/blok/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/blok/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/blok/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/blok/languages","stargazers_url":"https://api.github.com/repos/mozilla/blok/stargazers","contributors_url":"https://api.github.com/repos/mozilla/blok/contributors","subscribers_url":"https://api.github.com/repos/mozilla/blok/subscribers","subscription_url":"https://api.github.com/repos/mozilla/blok/subscription","commits_url":"https://api.github.com/repos/mozilla/blok/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/blok/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/blok/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/blok/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/blok/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/blok/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/blok/merges","archive_url":"https://api.github.com/repos/mozilla/blok/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/blok/downloads","issues_url":"https://api.github.com/repos/mozilla/blok/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/blok/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/blok/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/blok/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/blok/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/blok/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/blok/deployments","created_at":"2016-06-10T21:59:33Z","updated_at":"2016-08-07T05:52:31Z","pushed_at":"2016-08-12T15:26:37Z","git_url":"git://github.com/mozilla/blok.git","ssh_url":"git@github.com:mozilla/blok.git","clone_url":"https://github.com/mozilla/blok.git","svn_url":"https://github.com/mozilla/blok","homepage":"https://public.etherpad-mozilla.org/p/tracking-protection-coordination","size":21129,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":16,"forks":6,"open_issues":16,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/blok/pulls/104"},"html":{"href":"https://github.com/mozilla/blok/pull/104"},"issue":{"href":"https://api.github.com/repos/mozilla/blok/issues/104"},"comments":{"href":"https://api.github.com/repos/mozilla/blok/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/blok/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/blok/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/blok/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/blok/statuses/3909fe5e7f0d5d539e88494ce5127ee331fd4d2a"}}}}
{"actor":{"display_login":"pdehaan"}}