{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/32932368","id":32932368,"diff_hunk":"@@ -0,0 +1,238 @@\n+function normalizePort(targetPort) {\n+  var defaultPorts = [80, 443];\n+  var isDefaultPortForProtocol = (defaultPorts.indexOf(targetPort) >= 0);\n+\n+  return (targetPort == \"\" || isDefaultPortForProtocol) ?\n+          \"\" : \":\" + targetPort;\n+}\n+\n+function setAttributes(el, attrs) {\n+  attrs = attrs || {}\n+  for (var attr in attrs)\n+    el[attr] = attrs[attr];\n+}\n+\n+function createElement(tagName, attrs, parent) {\n+  var el = document.createElement(tagName);\n+  setAttributes(el, attrs);\n+  if (parent && parent.appendChild)\n+    parent.appendChild(el);\n+\n+  return el;\n+}\n+\n+function createHelperIframe(name) {\n+  return createElement(\"iframe\", {\"name\": name}, document.body);\n+}\n+\n+function queryIframe(url) {\n+  createElement(\"iframe\", {\"src\": url}, document.body);\n+}\n+\n+function queryImage(url) {\n+  createElement(\"img\", {\"src\": url}, document.body)\n+}\n+\n+function queryXhr(url) {\n+  var xhr = new XMLHttpRequest();\n+  xhr.open('GET', url, true);\n+  xhr.responseType = \"json\";\n+  xhr.send();\n+}\n+\n+function queryWorker(url) {\n+  var worker = new Worker(url);\n+  console.log(\"worker\", url);\n+  worker.postMessage('');","path":"mixed-content/generic/common.js","position":46,"original_position":46,"commit_id":"97c9af2b4420c8384b99153d8e90e664a7e1a852","original_commit_id":"97c9af2b4420c8384b99153d8e90e664a7e1a852","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":"Ditto.","created_at":"2015-06-22T13:17:16Z","updated_at":"2015-06-22T13:17:16Z","html_url":"https://github.com/w3c/web-platform-tests/pull/1889#discussion_r32932368","pull_request_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1889","_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/32932368"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/1889#discussion_r32932368"},"pull_request":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1889"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1889","id":37264813,"html_url":"https://github.com/w3c/web-platform-tests/pull/1889","diff_url":"https://github.com/w3c/web-platform-tests/pull/1889.diff","patch_url":"https://github.com/w3c/web-platform-tests/pull/1889.patch","issue_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/1889","number":1889,"state":"open","locked":false,"title":"Mixed Content","user":{"login":"kristijanburnik","id":7973657,"avatar_url":"https://avatars.githubusercontent.com/u/7973657?v=3","gravatar_id":"","url":"https://api.github.com/users/kristijanburnik","html_url":"https://github.com/kristijanburnik","followers_url":"https://api.github.com/users/kristijanburnik/followers","following_url":"https://api.github.com/users/kristijanburnik/following{/other_user}","gists_url":"https://api.github.com/users/kristijanburnik/gists{/gist_id}","starred_url":"https://api.github.com/users/kristijanburnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristijanburnik/subscriptions","organizations_url":"https://api.github.com/users/kristijanburnik/orgs","repos_url":"https://api.github.com/users/kristijanburnik/repos","events_url":"https://api.github.com/users/kristijanburnik/events{/privacy}","received_events_url":"https://api.github.com/users/kristijanburnik/received_events","type":"User","site_admin":false},"body":"Initial test specification, basic assertions and generating tools\r\n\r\n@mikewest \r\n","created_at":"2015-06-09T15:17:49Z","updated_at":"2015-06-22T13:17:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cb37a688dede46612f12b41364350665484927e","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},"milestone":null,"commits_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1889/commits","review_comments_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1889/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/1889/comments","statuses_url":"https://api.github.com/repos/w3c/web-platform-tests/statuses/97c9af2b4420c8384b99153d8e90e664a7e1a852","head":{"label":"kristijanburnik:mixed-content","ref":"mixed-content","sha":"97c9af2b4420c8384b99153d8e90e664a7e1a852","user":{"login":"kristijanburnik","id":7973657,"avatar_url":"https://avatars.githubusercontent.com/u/7973657?v=3","gravatar_id":"","url":"https://api.github.com/users/kristijanburnik","html_url":"https://github.com/kristijanburnik","followers_url":"https://api.github.com/users/kristijanburnik/followers","following_url":"https://api.github.com/users/kristijanburnik/following{/other_user}","gists_url":"https://api.github.com/users/kristijanburnik/gists{/gist_id}","starred_url":"https://api.github.com/users/kristijanburnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristijanburnik/subscriptions","organizations_url":"https://api.github.com/users/kristijanburnik/orgs","repos_url":"https://api.github.com/users/kristijanburnik/repos","events_url":"https://api.github.com/users/kristijanburnik/events{/privacy}","received_events_url":"https://api.github.com/users/kristijanburnik/received_events","type":"User","site_admin":false},"repo":{"id":35047443,"name":"web-platform-tests","full_name":"kristijanburnik/web-platform-tests","owner":{"login":"kristijanburnik","id":7973657,"avatar_url":"https://avatars.githubusercontent.com/u/7973657?v=3","gravatar_id":"","url":"https://api.github.com/users/kristijanburnik","html_url":"https://github.com/kristijanburnik","followers_url":"https://api.github.com/users/kristijanburnik/followers","following_url":"https://api.github.com/users/kristijanburnik/following{/other_user}","gists_url":"https://api.github.com/users/kristijanburnik/gists{/gist_id}","starred_url":"https://api.github.com/users/kristijanburnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristijanburnik/subscriptions","organizations_url":"https://api.github.com/users/kristijanburnik/orgs","repos_url":"https://api.github.com/users/kristijanburnik/repos","events_url":"https://api.github.com/users/kristijanburnik/events{/privacy}","received_events_url":"https://api.github.com/users/kristijanburnik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kristijanburnik/web-platform-tests","description":"Test Suites for Web Platform specifications","fork":true,"url":"https://api.github.com/repos/kristijanburnik/web-platform-tests","forks_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/forks","keys_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/teams","hooks_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/hooks","issue_events_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/issues/events{/number}","events_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/events","assignees_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/assignees{/user}","branches_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/branches{/branch}","tags_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/tags","blobs_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/languages","stargazers_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/stargazers","contributors_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/contributors","subscribers_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/subscribers","subscription_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/subscription","commits_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/contents/{+path}","compare_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/merges","archive_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/downloads","issues_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/issues{/number}","pulls_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/labels{/name}","releases_url":"https://api.github.com/repos/kristijanburnik/web-platform-tests/releases{/id}","created_at":"2015-05-04T16:59:15Z","updated_at":"2015-05-04T16:59:28Z","pushed_at":"2015-06-22T09:48:34Z","git_url":"git://github.com/kristijanburnik/web-platform-tests.git","ssh_url":"git@github.com:kristijanburnik/web-platform-tests.git","clone_url":"https://github.com/kristijanburnik/web-platform-tests.git","svn_url":"https://github.com/kristijanburnik/web-platform-tests","homepage":"http://irc.w3.org/?channels=testing","size":63025,"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":"90bb480ec59f0352ff2f9fea575598f358012280","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","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}","created_at":"2012-03-04T12:58:11Z","updated_at":"2015-06-22T12:34:35Z","pushed_at":"2015-06-22T09:48:36Z","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":323660,"stargazers_count":581,"watchers_count":581,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":700,"mirror_url":null,"open_issues_count":198,"forks":700,"open_issues":198,"watchers":581,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1889"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/1889"},"issue":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/1889"},"comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/1889/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1889/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/1889/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/web-platform-tests/statuses/97c9af2b4420c8384b99153d8e90e664a7e1a852"}}}}