{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/92766235","pull_request_review_id":13286519,"id":92766235,"diff_hunk":"@@ -20,6 +20,20 @@ function getOrigin() {\n   return url.toString();\n }\n \n+function getCrossOrigin() {\n+  var url = new URL(\"http://{{domains[天気の良い日]}}:{{ports[http][0]}}/\");\n+  return url.toString();\n+}\n+\n+function getSecureCrossOrigin() {\n+  // Since wptserve spins up servers on non-default port, 'self' matches\n+  // http://[host]:[specified-port] and https://[host]:[specified-port], but not\n+  // https://[host]:[https-port]. So, we use the http port for this https origin\n+  // in order to verify that a secure variant of a non-secure URL matches 'self'.\n+  var url = new URL(\"https://{{domains[天気の良い日]}}:{{ports[http][0]}}\");","path":"content-security-policy/support/testharness-helper.sub.js","position":14,"original_position":14,"commit_id":"b0c8e68a24809ed4789b24211582a7a019a63a1f","original_commit_id":"b0c8e68a24809ed4789b24211582a7a019a63a1f","user":{"login":"mikewest","id":1497,"avatar_url":"https://avatars.githubusercontent.com/u/1497?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewest","html_url":"https://github.com/mikewest","followers_url":"https://api.github.com/users/mikewest/followers","following_url":"https://api.github.com/users/mikewest/following{/other_user}","gists_url":"https://api.github.com/users/mikewest/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewest/subscriptions","organizations_url":"https://api.github.com/users/mikewest/orgs","repos_url":"https://api.github.com/users/mikewest/repos","events_url":"https://api.github.com/users/mikewest/events{/privacy}","received_events_url":"https://api.github.com/users/mikewest/received_events","type":"User","site_admin":false},"body":"I just realized that these helpers are in the `content-security-policy/support` file: let's move them to `content-security-policy/embedded-enforcement/support`. This `https` scheme/`http` port mismatch isn't going to be useful generally, and could cause confusion in the future if someone sees `getSecureCrossOrigin` and thinks \"Hey, that sounds useful!\"","created_at":"2016-12-16T07:51:33Z","updated_at":"2016-12-16T07:51:51Z","html_url":"https://github.com/w3c/web-platform-tests/pull/4327#discussion_r92766235","pull_request_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4327","_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/92766235"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/4327#discussion_r92766235"},"pull_request":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4327"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4327","id":97955576,"html_url":"https://github.com/w3c/web-platform-tests/pull/4327","diff_url":"https://github.com/w3c/web-platform-tests/pull/4327.diff","patch_url":"https://github.com/w3c/web-platform-tests/pull/4327.patch","issue_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/4327","number":4327,"state":"open","locked":false,"title":"EE: Subsumption Algorithm -- Part 3","user":{"login":"Sun77789","id":5797085,"avatar_url":"https://avatars.githubusercontent.com/u/5797085?v=3","gravatar_id":"","url":"https://api.github.com/users/Sun77789","html_url":"https://github.com/Sun77789","followers_url":"https://api.github.com/users/Sun77789/followers","following_url":"https://api.github.com/users/Sun77789/following{/other_user}","gists_url":"https://api.github.com/users/Sun77789/gists{/gist_id}","starred_url":"https://api.github.com/users/Sun77789/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sun77789/subscriptions","organizations_url":"https://api.github.com/users/Sun77789/orgs","repos_url":"https://api.github.com/users/Sun77789/repos","events_url":"https://api.github.com/users/Sun77789/events{/privacy}","received_events_url":"https://api.github.com/users/Sun77789/received_events","type":"User","site_admin":false},"body":"Tests for keyword `self`.\r\n@mikewest \r\n(Files other than `subsumption_algorithm-self.html` should be rebased on other PRs)","created_at":"2016-12-14T13:51:29Z","updated_at":"2016-12-16T07:51:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c72e804e0ba70b887b6aa5d0ca447284cfba23e","assignee":{"login":"mikewest","id":1497,"avatar_url":"https://avatars.githubusercontent.com/u/1497?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewest","html_url":"https://github.com/mikewest","followers_url":"https://api.github.com/users/mikewest/followers","following_url":"https://api.github.com/users/mikewest/following{/other_user}","gists_url":"https://api.github.com/users/mikewest/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewest/subscriptions","organizations_url":"https://api.github.com/users/mikewest/orgs","repos_url":"https://api.github.com/users/mikewest/repos","events_url":"https://api.github.com/users/mikewest/events{/privacy}","received_events_url":"https://api.github.com/users/mikewest/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikewest","id":1497,"avatar_url":"https://avatars.githubusercontent.com/u/1497?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewest","html_url":"https://github.com/mikewest","followers_url":"https://api.github.com/users/mikewest/followers","following_url":"https://api.github.com/users/mikewest/following{/other_user}","gists_url":"https://api.github.com/users/mikewest/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewest/subscriptions","organizations_url":"https://api.github.com/users/mikewest/orgs","repos_url":"https://api.github.com/users/mikewest/repos","events_url":"https://api.github.com/users/mikewest/events{/privacy}","received_events_url":"https://api.github.com/users/mikewest/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4327/commits","review_comments_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4327/comments","review_comment_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/4327/comments","statuses_url":"https://api.github.com/repos/w3c/web-platform-tests/statuses/b0c8e68a24809ed4789b24211582a7a019a63a1f","head":{"label":"Sun77789:part1.3","ref":"part1.3","sha":"b0c8e68a24809ed4789b24211582a7a019a63a1f","user":{"login":"Sun77789","id":5797085,"avatar_url":"https://avatars.githubusercontent.com/u/5797085?v=3","gravatar_id":"","url":"https://api.github.com/users/Sun77789","html_url":"https://github.com/Sun77789","followers_url":"https://api.github.com/users/Sun77789/followers","following_url":"https://api.github.com/users/Sun77789/following{/other_user}","gists_url":"https://api.github.com/users/Sun77789/gists{/gist_id}","starred_url":"https://api.github.com/users/Sun77789/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sun77789/subscriptions","organizations_url":"https://api.github.com/users/Sun77789/orgs","repos_url":"https://api.github.com/users/Sun77789/repos","events_url":"https://api.github.com/users/Sun77789/events{/privacy}","received_events_url":"https://api.github.com/users/Sun77789/received_events","type":"User","site_admin":false},"repo":{"id":75933886,"name":"web-platform-tests","full_name":"Sun77789/web-platform-tests","owner":{"login":"Sun77789","id":5797085,"avatar_url":"https://avatars.githubusercontent.com/u/5797085?v=3","gravatar_id":"","url":"https://api.github.com/users/Sun77789","html_url":"https://github.com/Sun77789","followers_url":"https://api.github.com/users/Sun77789/followers","following_url":"https://api.github.com/users/Sun77789/following{/other_user}","gists_url":"https://api.github.com/users/Sun77789/gists{/gist_id}","starred_url":"https://api.github.com/users/Sun77789/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sun77789/subscriptions","organizations_url":"https://api.github.com/users/Sun77789/orgs","repos_url":"https://api.github.com/users/Sun77789/repos","events_url":"https://api.github.com/users/Sun77789/events{/privacy}","received_events_url":"https://api.github.com/users/Sun77789/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sun77789/web-platform-tests","description":"Test Suites for Web Platform specifications—including WHATWG, W3C and others","fork":true,"url":"https://api.github.com/repos/Sun77789/web-platform-tests","forks_url":"https://api.github.com/repos/Sun77789/web-platform-tests/forks","keys_url":"https://api.github.com/repos/Sun77789/web-platform-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sun77789/web-platform-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sun77789/web-platform-tests/teams","hooks_url":"https://api.github.com/repos/Sun77789/web-platform-tests/hooks","issue_events_url":"https://api.github.com/repos/Sun77789/web-platform-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Sun77789/web-platform-tests/events","assignees_url":"https://api.github.com/repos/Sun77789/web-platform-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Sun77789/web-platform-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Sun77789/web-platform-tests/tags","blobs_url":"https://api.github.com/repos/Sun77789/web-platform-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sun77789/web-platform-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sun77789/web-platform-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sun77789/web-platform-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sun77789/web-platform-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Sun77789/web-platform-tests/languages","stargazers_url":"https://api.github.com/repos/Sun77789/web-platform-tests/stargazers","contributors_url":"https://api.github.com/repos/Sun77789/web-platform-tests/contributors","subscribers_url":"https://api.github.com/repos/Sun77789/web-platform-tests/subscribers","subscription_url":"https://api.github.com/repos/Sun77789/web-platform-tests/subscription","commits_url":"https://api.github.com/repos/Sun77789/web-platform-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sun77789/web-platform-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sun77789/web-platform-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sun77789/web-platform-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sun77789/web-platform-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Sun77789/web-platform-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sun77789/web-platform-tests/merges","archive_url":"https://api.github.com/repos/Sun77789/web-platform-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sun77789/web-platform-tests/downloads","issues_url":"https://api.github.com/repos/Sun77789/web-platform-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Sun77789/web-platform-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Sun77789/web-platform-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Sun77789/web-platform-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sun77789/web-platform-tests/labels{/name}","releases_url":"https://api.github.com/repos/Sun77789/web-platform-tests/releases{/id}","deployments_url":"https://api.github.com/repos/Sun77789/web-platform-tests/deployments","created_at":"2016-12-08T12:02:31Z","updated_at":"2016-12-08T12:03:02Z","pushed_at":"2016-12-15T17:50:29Z","git_url":"git://github.com/Sun77789/web-platform-tests.git","ssh_url":"git@github.com:Sun77789/web-platform-tests.git","clone_url":"https://github.com/Sun77789/web-platform-tests.git","svn_url":"https://github.com/Sun77789/web-platform-tests","homepage":"http://irc.w3.org/?channels=testing","size":169056,"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":"w3c:master","ref":"master","sha":"9c292953722dee25858a667417d2502ed418f235","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":3618133,"name":"web-platform-tests","full_name":"w3c/web-platform-tests","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/web-platform-tests","description":"Test Suites for Web Platform specifications—including WHATWG, W3C and others","fork":false,"url":"https://api.github.com/repos/w3c/web-platform-tests","forks_url":"https://api.github.com/repos/w3c/web-platform-tests/forks","keys_url":"https://api.github.com/repos/w3c/web-platform-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/web-platform-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/web-platform-tests/teams","hooks_url":"https://api.github.com/repos/w3c/web-platform-tests/hooks","issue_events_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/web-platform-tests/events","assignees_url":"https://api.github.com/repos/w3c/web-platform-tests/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/web-platform-tests/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/web-platform-tests/tags","blobs_url":"https://api.github.com/repos/w3c/web-platform-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/web-platform-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/web-platform-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/web-platform-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/web-platform-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/web-platform-tests/languages","stargazers_url":"https://api.github.com/repos/w3c/web-platform-tests/stargazers","contributors_url":"https://api.github.com/repos/w3c/web-platform-tests/contributors","subscribers_url":"https://api.github.com/repos/w3c/web-platform-tests/subscribers","subscription_url":"https://api.github.com/repos/w3c/web-platform-tests/subscription","commits_url":"https://api.github.com/repos/w3c/web-platform-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/web-platform-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/web-platform-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/web-platform-tests/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/web-platform-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/web-platform-tests/merges","archive_url":"https://api.github.com/repos/w3c/web-platform-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/web-platform-tests/downloads","issues_url":"https://api.github.com/repos/w3c/web-platform-tests/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/web-platform-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/web-platform-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/web-platform-tests/labels{/name}","releases_url":"https://api.github.com/repos/w3c/web-platform-tests/releases{/id}","deployments_url":"https://api.github.com/repos/w3c/web-platform-tests/deployments","created_at":"2012-03-04T12:58:11Z","updated_at":"2016-12-15T07:08:19Z","pushed_at":"2016-12-16T06:10:38Z","git_url":"git://github.com/w3c/web-platform-tests.git","ssh_url":"git@github.com:w3c/web-platform-tests.git","clone_url":"https://github.com/w3c/web-platform-tests.git","svn_url":"https://github.com/w3c/web-platform-tests","homepage":"http://irc.w3.org/?channels=testing","size":169693,"stargazers_count":901,"watchers_count":901,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":978,"mirror_url":null,"open_issues_count":437,"forks":978,"open_issues":437,"watchers":901,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4327"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/4327"},"issue":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/4327"},"comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/4327/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4327/comments"},"review_comment":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4327/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/web-platform-tests/statuses/b0c8e68a24809ed4789b24211582a7a019a63a1f"}}}}
{"actor":{"display_login":"mikewest"}}