{"action":"opened","number":54,"pull_request":{"url":"https://api.github.com/repos/gajus/youtube-player/pulls/54","id":111230639,"html_url":"https://github.com/gajus/youtube-player/pull/54","diff_url":"https://github.com/gajus/youtube-player/pull/54.diff","patch_url":"https://github.com/gajus/youtube-player/pull/54.patch","issue_url":"https://api.github.com/repos/gajus/youtube-player/issues/54","number":54,"state":"open","locked":false,"title":"fix: always use `https` to load iframe api","user":{"login":"SpainTrain","id":380032,"avatar_url":"https://avatars1.githubusercontent.com/u/380032?v=3","gravatar_id":"","url":"https://api.github.com/users/SpainTrain","html_url":"https://github.com/SpainTrain","followers_url":"https://api.github.com/users/SpainTrain/followers","following_url":"https://api.github.com/users/SpainTrain/following{/other_user}","gists_url":"https://api.github.com/users/SpainTrain/gists{/gist_id}","starred_url":"https://api.github.com/users/SpainTrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpainTrain/subscriptions","organizations_url":"https://api.github.com/users/SpainTrain/orgs","repos_url":"https://api.github.com/users/SpainTrain/repos","events_url":"https://api.github.com/users/SpainTrain/events{/privacy}","received_events_url":"https://api.github.com/users/SpainTrain/received_events","type":"User","site_admin":false},"body":"- Fixes `Failed to execute 'postMessage' on 'DOMWindow'` issue\n\nOverview\n--------\n\nOn our local development server, dev tools console was being spammed with error messages like:\n\n```\nwww-widgetapi.js:119 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://www.youtube.com') does not match the recipient window's origin ('https://www.youtube.com')\n```\n\nI traced it back to this lib, made the change in this PR, and consistently this issue has cleared up.  There is a somewhat corroborating SO question as well - http://stackoverflow.com/a/27574013/278891 .\n\nPlease let me know if there is a reason to use a protocol relative URL.  As far as I know, there aren't any compatibility issues with loading resources always via https (and only very marginal performance concerns).  This has also become the recommended way to load resources that are known to be served via https - https://www.paulirish.com/2010/the-protocol-relative-url/\n\ncheers!","created_at":"2017-03-17T08:00:32Z","updated_at":"2017-03-17T08:00:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gajus/youtube-player/pulls/54/commits","review_comments_url":"https://api.github.com/repos/gajus/youtube-player/pulls/54/comments","review_comment_url":"https://api.github.com/repos/gajus/youtube-player/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gajus/youtube-player/issues/54/comments","statuses_url":"https://api.github.com/repos/gajus/youtube-player/statuses/025a86fced4b678c020ee5d77b27c71490305963","head":{"label":"SpainTrain:https-everywhere","ref":"https-everywhere","sha":"025a86fced4b678c020ee5d77b27c71490305963","user":{"login":"SpainTrain","id":380032,"avatar_url":"https://avatars1.githubusercontent.com/u/380032?v=3","gravatar_id":"","url":"https://api.github.com/users/SpainTrain","html_url":"https://github.com/SpainTrain","followers_url":"https://api.github.com/users/SpainTrain/followers","following_url":"https://api.github.com/users/SpainTrain/following{/other_user}","gists_url":"https://api.github.com/users/SpainTrain/gists{/gist_id}","starred_url":"https://api.github.com/users/SpainTrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpainTrain/subscriptions","organizations_url":"https://api.github.com/users/SpainTrain/orgs","repos_url":"https://api.github.com/users/SpainTrain/repos","events_url":"https://api.github.com/users/SpainTrain/events{/privacy}","received_events_url":"https://api.github.com/users/SpainTrain/received_events","type":"User","site_admin":false},"repo":{"id":85274285,"name":"youtube-player","full_name":"SpainTrain/youtube-player","owner":{"login":"SpainTrain","id":380032,"avatar_url":"https://avatars1.githubusercontent.com/u/380032?v=3","gravatar_id":"","url":"https://api.github.com/users/SpainTrain","html_url":"https://github.com/SpainTrain","followers_url":"https://api.github.com/users/SpainTrain/followers","following_url":"https://api.github.com/users/SpainTrain/following{/other_user}","gists_url":"https://api.github.com/users/SpainTrain/gists{/gist_id}","starred_url":"https://api.github.com/users/SpainTrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpainTrain/subscriptions","organizations_url":"https://api.github.com/users/SpainTrain/orgs","repos_url":"https://api.github.com/users/SpainTrain/repos","events_url":"https://api.github.com/users/SpainTrain/events{/privacy}","received_events_url":"https://api.github.com/users/SpainTrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SpainTrain/youtube-player","description":"YouTube iframe API abstraction.","fork":true,"url":"https://api.github.com/repos/SpainTrain/youtube-player","forks_url":"https://api.github.com/repos/SpainTrain/youtube-player/forks","keys_url":"https://api.github.com/repos/SpainTrain/youtube-player/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpainTrain/youtube-player/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpainTrain/youtube-player/teams","hooks_url":"https://api.github.com/repos/SpainTrain/youtube-player/hooks","issue_events_url":"https://api.github.com/repos/SpainTrain/youtube-player/issues/events{/number}","events_url":"https://api.github.com/repos/SpainTrain/youtube-player/events","assignees_url":"https://api.github.com/repos/SpainTrain/youtube-player/assignees{/user}","branches_url":"https://api.github.com/repos/SpainTrain/youtube-player/branches{/branch}","tags_url":"https://api.github.com/repos/SpainTrain/youtube-player/tags","blobs_url":"https://api.github.com/repos/SpainTrain/youtube-player/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpainTrain/youtube-player/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpainTrain/youtube-player/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpainTrain/youtube-player/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpainTrain/youtube-player/statuses/{sha}","languages_url":"https://api.github.com/repos/SpainTrain/youtube-player/languages","stargazers_url":"https://api.github.com/repos/SpainTrain/youtube-player/stargazers","contributors_url":"https://api.github.com/repos/SpainTrain/youtube-player/contributors","subscribers_url":"https://api.github.com/repos/SpainTrain/youtube-player/subscribers","subscription_url":"https://api.github.com/repos/SpainTrain/youtube-player/subscription","commits_url":"https://api.github.com/repos/SpainTrain/youtube-player/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpainTrain/youtube-player/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpainTrain/youtube-player/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpainTrain/youtube-player/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpainTrain/youtube-player/contents/{+path}","compare_url":"https://api.github.com/repos/SpainTrain/youtube-player/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpainTrain/youtube-player/merges","archive_url":"https://api.github.com/repos/SpainTrain/youtube-player/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpainTrain/youtube-player/downloads","issues_url":"https://api.github.com/repos/SpainTrain/youtube-player/issues{/number}","pulls_url":"https://api.github.com/repos/SpainTrain/youtube-player/pulls{/number}","milestones_url":"https://api.github.com/repos/SpainTrain/youtube-player/milestones{/number}","notifications_url":"https://api.github.com/repos/SpainTrain/youtube-player/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpainTrain/youtube-player/labels{/name}","releases_url":"https://api.github.com/repos/SpainTrain/youtube-player/releases{/id}","deployments_url":"https://api.github.com/repos/SpainTrain/youtube-player/deployments","created_at":"2017-03-17T05:28:59Z","updated_at":"2017-03-17T05:29:01Z","pushed_at":"2017-03-17T07:41:41Z","git_url":"git://github.com/SpainTrain/youtube-player.git","ssh_url":"git@github.com:SpainTrain/youtube-player.git","clone_url":"https://github.com/SpainTrain/youtube-player.git","svn_url":"https://github.com/SpainTrain/youtube-player","homepage":null,"size":657,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"gajus:master","ref":"master","sha":"f93f18a9672218af1588af0f39551c1ecedfccb9","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars1.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"repo":{"id":31009998,"name":"youtube-player","full_name":"gajus/youtube-player","owner":{"login":"gajus","id":973543,"avatar_url":"https://avatars1.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gajus/youtube-player","description":"YouTube iframe API abstraction.","fork":false,"url":"https://api.github.com/repos/gajus/youtube-player","forks_url":"https://api.github.com/repos/gajus/youtube-player/forks","keys_url":"https://api.github.com/repos/gajus/youtube-player/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gajus/youtube-player/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gajus/youtube-player/teams","hooks_url":"https://api.github.com/repos/gajus/youtube-player/hooks","issue_events_url":"https://api.github.com/repos/gajus/youtube-player/issues/events{/number}","events_url":"https://api.github.com/repos/gajus/youtube-player/events","assignees_url":"https://api.github.com/repos/gajus/youtube-player/assignees{/user}","branches_url":"https://api.github.com/repos/gajus/youtube-player/branches{/branch}","tags_url":"https://api.github.com/repos/gajus/youtube-player/tags","blobs_url":"https://api.github.com/repos/gajus/youtube-player/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gajus/youtube-player/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gajus/youtube-player/git/refs{/sha}","trees_url":"https://api.github.com/repos/gajus/youtube-player/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gajus/youtube-player/statuses/{sha}","languages_url":"https://api.github.com/repos/gajus/youtube-player/languages","stargazers_url":"https://api.github.com/repos/gajus/youtube-player/stargazers","contributors_url":"https://api.github.com/repos/gajus/youtube-player/contributors","subscribers_url":"https://api.github.com/repos/gajus/youtube-player/subscribers","subscription_url":"https://api.github.com/repos/gajus/youtube-player/subscription","commits_url":"https://api.github.com/repos/gajus/youtube-player/commits{/sha}","git_commits_url":"https://api.github.com/repos/gajus/youtube-player/git/commits{/sha}","comments_url":"https://api.github.com/repos/gajus/youtube-player/comments{/number}","issue_comment_url":"https://api.github.com/repos/gajus/youtube-player/issues/comments{/number}","contents_url":"https://api.github.com/repos/gajus/youtube-player/contents/{+path}","compare_url":"https://api.github.com/repos/gajus/youtube-player/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gajus/youtube-player/merges","archive_url":"https://api.github.com/repos/gajus/youtube-player/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gajus/youtube-player/downloads","issues_url":"https://api.github.com/repos/gajus/youtube-player/issues{/number}","pulls_url":"https://api.github.com/repos/gajus/youtube-player/pulls{/number}","milestones_url":"https://api.github.com/repos/gajus/youtube-player/milestones{/number}","notifications_url":"https://api.github.com/repos/gajus/youtube-player/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gajus/youtube-player/labels{/name}","releases_url":"https://api.github.com/repos/gajus/youtube-player/releases{/id}","deployments_url":"https://api.github.com/repos/gajus/youtube-player/deployments","created_at":"2015-02-19T10:13:13Z","updated_at":"2017-03-06T20:11:37Z","pushed_at":"2017-02-06T04:54:27Z","git_url":"git://github.com/gajus/youtube-player.git","ssh_url":"git@github.com:gajus/youtube-player.git","clone_url":"https://github.com/gajus/youtube-player.git","svn_url":"https://github.com/gajus/youtube-player","homepage":null,"size":657,"stargazers_count":89,"watchers_count":89,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":4,"forks":33,"open_issues":4,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gajus/youtube-player/pulls/54"},"html":{"href":"https://github.com/gajus/youtube-player/pull/54"},"issue":{"href":"https://api.github.com/repos/gajus/youtube-player/issues/54"},"comments":{"href":"https://api.github.com/repos/gajus/youtube-player/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/gajus/youtube-player/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/gajus/youtube-player/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gajus/youtube-player/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/gajus/youtube-player/statuses/025a86fced4b678c020ee5d77b27c71490305963"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"SpainTrain"}}