{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/81196758","pull_request_review_id":2188516,"id":81196758,"diff_hunk":"@@ -39,13 +39,18 @@ function MessageHandler( keysystem, content, sessionType ) {\n     this._keysystem = keysystem;\n     this._content = content;\n     this._sessionType = sessionType;\n-    this._drmconfig = drmconfig[ this._keysystem ].filter( function( drmconfig ) {\n-        return drmconfig.sessionTypes === undefined || ( drmconfig.sessionTypes.indexOf( sessionType ) !== -1 );\n-    } )[ 0 ];\n-\n-    this.messagehandler = MessageHandler.prototype.messagehandler.bind( this );\n-    if ( this._drmconfig && this._drmconfig.certificate ) {\n-        this.servercertificate = stringToUint8Array( atob( this._drmconfig.certificate ) );\n+    try {\n+        this._drmconfig = drmconfig[this._keysystem].filter(function (drmconfig) {\n+            return drmconfig.sessionTypes === undefined || ( drmconfig.sessionTypes.indexOf(sessionType) !== -1 );\n+        })[0];\n+\n+        this.messagehandler = MessageHandler.prototype.messagehandler.bind(this);\n+        if (this._drmconfig && this._drmconfig.certificate) {\n+            this.servercertificate = stringToUint8Array(atob(this._drmconfig.certificate));\n+        }\n+    }\n+    catch(e) {","path":"encrypted-media/util/drm-messagehandler.js","position":21,"original_position":21,"commit_id":"41d7925bdb041d82ca5502f983a31b84562411ec","original_commit_id":"41d7925bdb041d82ca5502f983a31b84562411ec","user":{"login":"AlexeyKor","id":2487415,"avatar_url":"https://avatars.githubusercontent.com/u/2487415?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexeyKor","html_url":"https://github.com/AlexeyKor","followers_url":"https://api.github.com/users/AlexeyKor/followers","following_url":"https://api.github.com/users/AlexeyKor/following{/other_user}","gists_url":"https://api.github.com/users/AlexeyKor/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeyKor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeyKor/subscriptions","organizations_url":"https://api.github.com/users/AlexeyKor/orgs","repos_url":"https://api.github.com/users/AlexeyKor/repos","events_url":"https://api.github.com/users/AlexeyKor/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeyKor/received_events","type":"User","site_admin":false},"body":"nit: } catch(e) {","created_at":"2016-09-29T17:57:29Z","updated_at":"2016-09-29T18:02:01Z","html_url":"https://github.com/w3c/web-platform-tests/pull/3790#discussion_r81196758","pull_request_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/3790","_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/81196758"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/3790#discussion_r81196758"},"pull_request":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/3790"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/3790","id":86186604,"html_url":"https://github.com/w3c/web-platform-tests/pull/3790","diff_url":"https://github.com/w3c/web-platform-tests/pull/3790.diff","patch_url":"https://github.com/w3c/web-platform-tests/pull/3790.patch","issue_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/3790","number":3790,"state":"open","locked":false,"title":"Encrypted media test google migration","user":{"login":"squapp","id":129949,"avatar_url":"https://avatars.githubusercontent.com/u/129949?v=3","gravatar_id":"","url":"https://api.github.com/users/squapp","html_url":"https://github.com/squapp","followers_url":"https://api.github.com/users/squapp/followers","following_url":"https://api.github.com/users/squapp/following{/other_user}","gists_url":"https://api.github.com/users/squapp/gists{/gist_id}","starred_url":"https://api.github.com/users/squapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squapp/subscriptions","organizations_url":"https://api.github.com/users/squapp/orgs","repos_url":"https://api.github.com/users/squapp/repos","events_url":"https://api.github.com/users/squapp/events{/privacy}","received_events_url":"https://api.github.com/users/squapp/received_events","type":"User","site_admin":false},"body":"this adds following migrated test cases:\r\n\r\nencrypted-media/drm-mp4-onencrypted.html\r\n\r\nencrypted-media/clearkey-invalid-license.html\r\nencrypted-media/drm-invalid-license.html\r\n\r\nencrypted-media/clearkey-mp4-unique-origin.html\r\nencrypted-media/drm-mp4-unique-origin.html\r\n\r\nencrypted-media/clearkey-update-non-ascii-input.html","created_at":"2016-09-21T15:31:26Z","updated_at":"2016-09-29T18:02:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"372997c14dabae9fb6a04fb813c571fdf9f503fb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/3790/commits","review_comments_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/3790/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/3790/comments","statuses_url":"https://api.github.com/repos/w3c/web-platform-tests/statuses/41d7925bdb041d82ca5502f983a31b84562411ec","head":{"label":"fraunhoferfokus:encrypted-media-test-google-migration","ref":"encrypted-media-test-google-migration","sha":"41d7925bdb041d82ca5502f983a31b84562411ec","user":{"login":"fraunhoferfokus","id":1138347,"avatar_url":"https://avatars.githubusercontent.com/u/1138347?v=3","gravatar_id":"","url":"https://api.github.com/users/fraunhoferfokus","html_url":"https://github.com/fraunhoferfokus","followers_url":"https://api.github.com/users/fraunhoferfokus/followers","following_url":"https://api.github.com/users/fraunhoferfokus/following{/other_user}","gists_url":"https://api.github.com/users/fraunhoferfokus/gists{/gist_id}","starred_url":"https://api.github.com/users/fraunhoferfokus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraunhoferfokus/subscriptions","organizations_url":"https://api.github.com/users/fraunhoferfokus/orgs","repos_url":"https://api.github.com/users/fraunhoferfokus/repos","events_url":"https://api.github.com/users/fraunhoferfokus/events{/privacy}","received_events_url":"https://api.github.com/users/fraunhoferfokus/received_events","type":"Organization","site_admin":false},"repo":{"id":68603578,"name":"web-platform-tests","full_name":"fraunhoferfokus/web-platform-tests","owner":{"login":"fraunhoferfokus","id":1138347,"avatar_url":"https://avatars.githubusercontent.com/u/1138347?v=3","gravatar_id":"","url":"https://api.github.com/users/fraunhoferfokus","html_url":"https://github.com/fraunhoferfokus","followers_url":"https://api.github.com/users/fraunhoferfokus/followers","following_url":"https://api.github.com/users/fraunhoferfokus/following{/other_user}","gists_url":"https://api.github.com/users/fraunhoferfokus/gists{/gist_id}","starred_url":"https://api.github.com/users/fraunhoferfokus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraunhoferfokus/subscriptions","organizations_url":"https://api.github.com/users/fraunhoferfokus/orgs","repos_url":"https://api.github.com/users/fraunhoferfokus/repos","events_url":"https://api.github.com/users/fraunhoferfokus/events{/privacy}","received_events_url":"https://api.github.com/users/fraunhoferfokus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fraunhoferfokus/web-platform-tests","description":"Test Suites for Web Platform specifications—including WHATWG, W3C and others","fork":true,"url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests","forks_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/forks","keys_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/teams","hooks_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/hooks","issue_events_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/issues/events{/number}","events_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/events","assignees_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/assignees{/user}","branches_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/branches{/branch}","tags_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/tags","blobs_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/languages","stargazers_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/stargazers","contributors_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/contributors","subscribers_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/subscribers","subscription_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/subscription","commits_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/contents/{+path}","compare_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/merges","archive_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/downloads","issues_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/issues{/number}","pulls_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/labels{/name}","releases_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/releases{/id}","deployments_url":"https://api.github.com/repos/fraunhoferfokus/web-platform-tests/deployments","created_at":"2016-09-19T12:27:59Z","updated_at":"2016-09-19T12:28:28Z","pushed_at":"2016-09-29T14:03:37Z","git_url":"git://github.com/fraunhoferfokus/web-platform-tests.git","ssh_url":"git@github.com:fraunhoferfokus/web-platform-tests.git","clone_url":"https://github.com/fraunhoferfokus/web-platform-tests.git","svn_url":"https://github.com/fraunhoferfokus/web-platform-tests","homepage":"http://irc.w3.org/?channels=testing","size":165181,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"encrypted-media-test-google-migration-2"}},"base":{"label":"w3c:master","ref":"master","sha":"3801ab5834101113e5f53bfb57e3c76b2b87ecbb","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-09-28T11:02:01Z","pushed_at":"2016-09-29T15:52:54Z","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":334373,"stargazers_count":856,"watchers_count":856,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":926,"mirror_url":null,"open_issues_count":397,"forks":926,"open_issues":397,"watchers":856,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/3790"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/3790"},"issue":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/3790"},"comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/3790/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/3790/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/3790/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/web-platform-tests/statuses/41d7925bdb041d82ca5502f983a31b84562411ec"}}}}
{"actor":{"display_login":"AlexeyKor"}}