{"action":"created","comment":{"url":"https://api.github.com/repos/yahoo/end-to-end/pulls/comments/34113222","id":34113222,"diff_hunk":"@@ -93,24 +86,20 @@ ui.GlassWrapper.prototype.installGlass = function(opt_callback) {\n   glassFrame.scrolling = 'no';\n   goog.style.setSize(glassFrame, goog.style.getSize(this.targetElem_));\n   glassFrame.style.border = 0;\n-  var pgpMessage = '';\n-  var surroundings = ['', ''];\n-\n-  if (this.originalText_) {\n-    pgpMessage = this.originalText_;\n-  } else {\n-    pgpMessage =\n-        e2e.openpgp.asciiArmor.extractPgpBlock(this.targetElem_.innerText);\n-    surroundings = this.targetElem_.innerText.split(pgpMessage);\n-  }\n+\n+  var pgpMessage =\n+      e2e.openpgp.asciiArmor.extractPgpBlock(this.targetElem_.innerText);\n+  var surroundings = this.targetElem_.innerText.split(pgpMessage);","path":"src/javascript/crypto/e2e/extension/ui/glass/glasswrapper.js","position":31,"original_position":31,"commit_id":"0a15a552c77c14cd3f46cce16971a0f9743c77b3","original_commit_id":"0a15a552c77c14cd3f46cce16971a0f9743c77b3","user":{"login":"adon-at-work","id":8486533,"avatar_url":"https://avatars.githubusercontent.com/u/8486533?v=3","gravatar_id":"","url":"https://api.github.com/users/adon-at-work","html_url":"https://github.com/adon-at-work","followers_url":"https://api.github.com/users/adon-at-work/followers","following_url":"https://api.github.com/users/adon-at-work/following{/other_user}","gists_url":"https://api.github.com/users/adon-at-work/gists{/gist_id}","starred_url":"https://api.github.com/users/adon-at-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adon-at-work/subscriptions","organizations_url":"https://api.github.com/users/adon-at-work/orgs","repos_url":"https://api.github.com/users/adon-at-work/repos","events_url":"https://api.github.com/users/adon-at-work/events{/privacy}","received_events_url":"https://api.github.com/users/adon-at-work/received_events","type":"User","site_admin":false},"body":"i'm forwarding my email to you too for your examination (i operated my local key server).\r\n\r\nShould I merge this PR as is? You may like to make a more resilient patch later.","created_at":"2015-07-08T03:22:08Z","updated_at":"2015-07-08T03:22:08Z","html_url":"https://github.com/yahoo/end-to-end/pull/49#discussion_r34113222","pull_request_url":"https://api.github.com/repos/yahoo/end-to-end/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/yahoo/end-to-end/pulls/comments/34113222"},"html":{"href":"https://github.com/yahoo/end-to-end/pull/49#discussion_r34113222"},"pull_request":{"href":"https://api.github.com/repos/yahoo/end-to-end/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/yahoo/end-to-end/pulls/49","id":39026151,"html_url":"https://github.com/yahoo/end-to-end/pull/49","diff_url":"https://github.com/yahoo/end-to-end/pull/49.diff","patch_url":"https://github.com/yahoo/end-to-end/pull/49.patch","issue_url":"https://api.github.com/repos/yahoo/end-to-end/issues/49","number":49,"state":"open","locked":false,"title":"Don't replace text outside of PGP armor in looking glass","user":{"login":"diracdeltas","id":549654,"avatar_url":"https://avatars.githubusercontent.com/u/549654?v=3","gravatar_id":"","url":"https://api.github.com/users/diracdeltas","html_url":"https://github.com/diracdeltas","followers_url":"https://api.github.com/users/diracdeltas/followers","following_url":"https://api.github.com/users/diracdeltas/following{/other_user}","gists_url":"https://api.github.com/users/diracdeltas/gists{/gist_id}","starred_url":"https://api.github.com/users/diracdeltas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diracdeltas/subscriptions","organizations_url":"https://api.github.com/users/diracdeltas/orgs","repos_url":"https://api.github.com/users/diracdeltas/repos","events_url":"https://api.github.com/users/diracdeltas/events{/privacy}","received_events_url":"https://api.github.com/users/diracdeltas/received_events","type":"User","site_admin":false},"body":"Fix #34 ","created_at":"2015-07-01T21:16:41Z","updated_at":"2015-07-08T03:22:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"000f119ffec1486556a7e697deb22ea234171739","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yahoo/end-to-end/pulls/49/commits","review_comments_url":"https://api.github.com/repos/yahoo/end-to-end/pulls/49/comments","review_comment_url":"https://api.github.com/repos/yahoo/end-to-end/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yahoo/end-to-end/issues/49/comments","statuses_url":"https://api.github.com/repos/yahoo/end-to-end/statuses/0a15a552c77c14cd3f46cce16971a0f9743c77b3","head":{"label":"yahoo:fix/issue-34","ref":"fix/issue-34","sha":"0a15a552c77c14cd3f46cce16971a0f9743c77b3","user":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"repo":{"id":32270084,"name":"end-to-end","full_name":"yahoo/end-to-end","owner":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yahoo/end-to-end","description":"Use OpenPGP-based encryption in Yahoo mail.","fork":false,"url":"https://api.github.com/repos/yahoo/end-to-end","forks_url":"https://api.github.com/repos/yahoo/end-to-end/forks","keys_url":"https://api.github.com/repos/yahoo/end-to-end/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yahoo/end-to-end/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yahoo/end-to-end/teams","hooks_url":"https://api.github.com/repos/yahoo/end-to-end/hooks","issue_events_url":"https://api.github.com/repos/yahoo/end-to-end/issues/events{/number}","events_url":"https://api.github.com/repos/yahoo/end-to-end/events","assignees_url":"https://api.github.com/repos/yahoo/end-to-end/assignees{/user}","branches_url":"https://api.github.com/repos/yahoo/end-to-end/branches{/branch}","tags_url":"https://api.github.com/repos/yahoo/end-to-end/tags","blobs_url":"https://api.github.com/repos/yahoo/end-to-end/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yahoo/end-to-end/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yahoo/end-to-end/git/refs{/sha}","trees_url":"https://api.github.com/repos/yahoo/end-to-end/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yahoo/end-to-end/statuses/{sha}","languages_url":"https://api.github.com/repos/yahoo/end-to-end/languages","stargazers_url":"https://api.github.com/repos/yahoo/end-to-end/stargazers","contributors_url":"https://api.github.com/repos/yahoo/end-to-end/contributors","subscribers_url":"https://api.github.com/repos/yahoo/end-to-end/subscribers","subscription_url":"https://api.github.com/repos/yahoo/end-to-end/subscription","commits_url":"https://api.github.com/repos/yahoo/end-to-end/commits{/sha}","git_commits_url":"https://api.github.com/repos/yahoo/end-to-end/git/commits{/sha}","comments_url":"https://api.github.com/repos/yahoo/end-to-end/comments{/number}","issue_comment_url":"https://api.github.com/repos/yahoo/end-to-end/issues/comments{/number}","contents_url":"https://api.github.com/repos/yahoo/end-to-end/contents/{+path}","compare_url":"https://api.github.com/repos/yahoo/end-to-end/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yahoo/end-to-end/merges","archive_url":"https://api.github.com/repos/yahoo/end-to-end/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yahoo/end-to-end/downloads","issues_url":"https://api.github.com/repos/yahoo/end-to-end/issues{/number}","pulls_url":"https://api.github.com/repos/yahoo/end-to-end/pulls{/number}","milestones_url":"https://api.github.com/repos/yahoo/end-to-end/milestones{/number}","notifications_url":"https://api.github.com/repos/yahoo/end-to-end/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yahoo/end-to-end/labels{/name}","releases_url":"https://api.github.com/repos/yahoo/end-to-end/releases{/id}","created_at":"2015-03-15T16:14:20Z","updated_at":"2015-07-07T23:50:37Z","pushed_at":"2015-07-07T03:12:59Z","git_url":"git://github.com/yahoo/end-to-end.git","ssh_url":"git@github.com:yahoo/end-to-end.git","clone_url":"https://github.com/yahoo/end-to-end.git","svn_url":"https://github.com/yahoo/end-to-end","homepage":"http://yahoo.tumblr.com/post/113708033335/user-focused-security-end-to-end-encryption","size":12297,"stargazers_count":147,"watchers_count":147,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":17,"forks":21,"open_issues":17,"watchers":147,"default_branch":"master"}},"base":{"label":"yahoo:master","ref":"master","sha":"2492829f5788f40eee4f20864dffcec9ba0447f5","user":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"repo":{"id":32270084,"name":"end-to-end","full_name":"yahoo/end-to-end","owner":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yahoo/end-to-end","description":"Use OpenPGP-based encryption in Yahoo mail.","fork":false,"url":"https://api.github.com/repos/yahoo/end-to-end","forks_url":"https://api.github.com/repos/yahoo/end-to-end/forks","keys_url":"https://api.github.com/repos/yahoo/end-to-end/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yahoo/end-to-end/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yahoo/end-to-end/teams","hooks_url":"https://api.github.com/repos/yahoo/end-to-end/hooks","issue_events_url":"https://api.github.com/repos/yahoo/end-to-end/issues/events{/number}","events_url":"https://api.github.com/repos/yahoo/end-to-end/events","assignees_url":"https://api.github.com/repos/yahoo/end-to-end/assignees{/user}","branches_url":"https://api.github.com/repos/yahoo/end-to-end/branches{/branch}","tags_url":"https://api.github.com/repos/yahoo/end-to-end/tags","blobs_url":"https://api.github.com/repos/yahoo/end-to-end/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yahoo/end-to-end/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yahoo/end-to-end/git/refs{/sha}","trees_url":"https://api.github.com/repos/yahoo/end-to-end/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yahoo/end-to-end/statuses/{sha}","languages_url":"https://api.github.com/repos/yahoo/end-to-end/languages","stargazers_url":"https://api.github.com/repos/yahoo/end-to-end/stargazers","contributors_url":"https://api.github.com/repos/yahoo/end-to-end/contributors","subscribers_url":"https://api.github.com/repos/yahoo/end-to-end/subscribers","subscription_url":"https://api.github.com/repos/yahoo/end-to-end/subscription","commits_url":"https://api.github.com/repos/yahoo/end-to-end/commits{/sha}","git_commits_url":"https://api.github.com/repos/yahoo/end-to-end/git/commits{/sha}","comments_url":"https://api.github.com/repos/yahoo/end-to-end/comments{/number}","issue_comment_url":"https://api.github.com/repos/yahoo/end-to-end/issues/comments{/number}","contents_url":"https://api.github.com/repos/yahoo/end-to-end/contents/{+path}","compare_url":"https://api.github.com/repos/yahoo/end-to-end/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yahoo/end-to-end/merges","archive_url":"https://api.github.com/repos/yahoo/end-to-end/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yahoo/end-to-end/downloads","issues_url":"https://api.github.com/repos/yahoo/end-to-end/issues{/number}","pulls_url":"https://api.github.com/repos/yahoo/end-to-end/pulls{/number}","milestones_url":"https://api.github.com/repos/yahoo/end-to-end/milestones{/number}","notifications_url":"https://api.github.com/repos/yahoo/end-to-end/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yahoo/end-to-end/labels{/name}","releases_url":"https://api.github.com/repos/yahoo/end-to-end/releases{/id}","created_at":"2015-03-15T16:14:20Z","updated_at":"2015-07-07T23:50:37Z","pushed_at":"2015-07-07T03:12:59Z","git_url":"git://github.com/yahoo/end-to-end.git","ssh_url":"git@github.com:yahoo/end-to-end.git","clone_url":"https://github.com/yahoo/end-to-end.git","svn_url":"https://github.com/yahoo/end-to-end","homepage":"http://yahoo.tumblr.com/post/113708033335/user-focused-security-end-to-end-encryption","size":12297,"stargazers_count":147,"watchers_count":147,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":17,"forks":21,"open_issues":17,"watchers":147,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yahoo/end-to-end/pulls/49"},"html":{"href":"https://github.com/yahoo/end-to-end/pull/49"},"issue":{"href":"https://api.github.com/repos/yahoo/end-to-end/issues/49"},"comments":{"href":"https://api.github.com/repos/yahoo/end-to-end/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/yahoo/end-to-end/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/yahoo/end-to-end/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yahoo/end-to-end/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/yahoo/end-to-end/statuses/0a15a552c77c14cd3f46cce16971a0f9743c77b3"}}}}