{"action":"opened","number":297,"pull_request":{"url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/297","id":82237461,"html_url":"https://github.com/KartikTalwar/gmail.js/pull/297","diff_url":"https://github.com/KartikTalwar/gmail.js/pull/297.diff","patch_url":"https://github.com/KartikTalwar/gmail.js/pull/297.patch","issue_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/297","number":297,"state":"open","locked":false,"title":"Removing original XMLHttpRequest from prototype to protect it as a gl…","user":{"login":"bpirtle","id":2916227,"avatar_url":"https://avatars.githubusercontent.com/u/2916227?v=3","gravatar_id":"","url":"https://api.github.com/users/bpirtle","html_url":"https://github.com/bpirtle","followers_url":"https://api.github.com/users/bpirtle/followers","following_url":"https://api.github.com/users/bpirtle/following{/other_user}","gists_url":"https://api.github.com/users/bpirtle/gists{/gist_id}","starred_url":"https://api.github.com/users/bpirtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpirtle/subscriptions","organizations_url":"https://api.github.com/users/bpirtle/orgs","repos_url":"https://api.github.com/users/bpirtle/repos","events_url":"https://api.github.com/users/bpirtle/events{/privacy}","received_events_url":"https://api.github.com/users/bpirtle/received_events","type":"User","site_admin":false},"body":"This makes the original XMLHttpRequest object's send and open methods part of a new global object on the window so that other extensions that may overwrite the native XMLHttpRequest object will not interfere with the wrapped version.\r\n\r\nBackground: Previously, if InboxSDK came in after an extension that uses gmail.js was loaded and installed any xhr observers, then it would overwrite the entire XMLHttpRequest object and clobber those (Overwrite new members added: _gjs_open/_gjs_send to the prototype and make them undefined). This would break gmail, since the undefined errors would cause this code to crash and never run the async requests properly.","created_at":"2016-08-22T18:16:05Z","updated_at":"2016-08-22T18:16:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40453cce18c714f069bd784b4a622114b5801bbe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/297/commits","review_comments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/297/comments","review_comment_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/297/comments","statuses_url":"https://api.github.com/repos/KartikTalwar/gmail.js/statuses/56e3ade3e82c7675681431ed29f08641fb1b2c3a","head":{"label":"bpirtle:xhr_observer_global","ref":"xhr_observer_global","sha":"56e3ade3e82c7675681431ed29f08641fb1b2c3a","user":{"login":"bpirtle","id":2916227,"avatar_url":"https://avatars.githubusercontent.com/u/2916227?v=3","gravatar_id":"","url":"https://api.github.com/users/bpirtle","html_url":"https://github.com/bpirtle","followers_url":"https://api.github.com/users/bpirtle/followers","following_url":"https://api.github.com/users/bpirtle/following{/other_user}","gists_url":"https://api.github.com/users/bpirtle/gists{/gist_id}","starred_url":"https://api.github.com/users/bpirtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpirtle/subscriptions","organizations_url":"https://api.github.com/users/bpirtle/orgs","repos_url":"https://api.github.com/users/bpirtle/repos","events_url":"https://api.github.com/users/bpirtle/events{/privacy}","received_events_url":"https://api.github.com/users/bpirtle/received_events","type":"User","site_admin":false},"repo":{"id":66294657,"name":"gmail.js","full_name":"bpirtle/gmail.js","owner":{"login":"bpirtle","id":2916227,"avatar_url":"https://avatars.githubusercontent.com/u/2916227?v=3","gravatar_id":"","url":"https://api.github.com/users/bpirtle","html_url":"https://github.com/bpirtle","followers_url":"https://api.github.com/users/bpirtle/followers","following_url":"https://api.github.com/users/bpirtle/following{/other_user}","gists_url":"https://api.github.com/users/bpirtle/gists{/gist_id}","starred_url":"https://api.github.com/users/bpirtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpirtle/subscriptions","organizations_url":"https://api.github.com/users/bpirtle/orgs","repos_url":"https://api.github.com/users/bpirtle/repos","events_url":"https://api.github.com/users/bpirtle/events{/privacy}","received_events_url":"https://api.github.com/users/bpirtle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bpirtle/gmail.js","description":"Gmail JavaScript API","fork":true,"url":"https://api.github.com/repos/bpirtle/gmail.js","forks_url":"https://api.github.com/repos/bpirtle/gmail.js/forks","keys_url":"https://api.github.com/repos/bpirtle/gmail.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bpirtle/gmail.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bpirtle/gmail.js/teams","hooks_url":"https://api.github.com/repos/bpirtle/gmail.js/hooks","issue_events_url":"https://api.github.com/repos/bpirtle/gmail.js/issues/events{/number}","events_url":"https://api.github.com/repos/bpirtle/gmail.js/events","assignees_url":"https://api.github.com/repos/bpirtle/gmail.js/assignees{/user}","branches_url":"https://api.github.com/repos/bpirtle/gmail.js/branches{/branch}","tags_url":"https://api.github.com/repos/bpirtle/gmail.js/tags","blobs_url":"https://api.github.com/repos/bpirtle/gmail.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bpirtle/gmail.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bpirtle/gmail.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/bpirtle/gmail.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bpirtle/gmail.js/statuses/{sha}","languages_url":"https://api.github.com/repos/bpirtle/gmail.js/languages","stargazers_url":"https://api.github.com/repos/bpirtle/gmail.js/stargazers","contributors_url":"https://api.github.com/repos/bpirtle/gmail.js/contributors","subscribers_url":"https://api.github.com/repos/bpirtle/gmail.js/subscribers","subscription_url":"https://api.github.com/repos/bpirtle/gmail.js/subscription","commits_url":"https://api.github.com/repos/bpirtle/gmail.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/bpirtle/gmail.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/bpirtle/gmail.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/bpirtle/gmail.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/bpirtle/gmail.js/contents/{+path}","compare_url":"https://api.github.com/repos/bpirtle/gmail.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bpirtle/gmail.js/merges","archive_url":"https://api.github.com/repos/bpirtle/gmail.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bpirtle/gmail.js/downloads","issues_url":"https://api.github.com/repos/bpirtle/gmail.js/issues{/number}","pulls_url":"https://api.github.com/repos/bpirtle/gmail.js/pulls{/number}","milestones_url":"https://api.github.com/repos/bpirtle/gmail.js/milestones{/number}","notifications_url":"https://api.github.com/repos/bpirtle/gmail.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bpirtle/gmail.js/labels{/name}","releases_url":"https://api.github.com/repos/bpirtle/gmail.js/releases{/id}","deployments_url":"https://api.github.com/repos/bpirtle/gmail.js/deployments","created_at":"2016-08-22T17:43:16Z","updated_at":"2016-08-22T17:43:17Z","pushed_at":"2016-08-22T18:01:46Z","git_url":"git://github.com/bpirtle/gmail.js.git","ssh_url":"git@github.com:bpirtle/gmail.js.git","clone_url":"https://github.com/bpirtle/gmail.js.git","svn_url":"https://github.com/bpirtle/gmail.js","homepage":"","size":1002,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"KartikTalwar:master","ref":"master","sha":"f6ec0d6a0f45ab5e3a470c12a145b7c0eb6149c8","user":{"login":"KartikTalwar","id":461702,"avatar_url":"https://avatars.githubusercontent.com/u/461702?v=3","gravatar_id":"","url":"https://api.github.com/users/KartikTalwar","html_url":"https://github.com/KartikTalwar","followers_url":"https://api.github.com/users/KartikTalwar/followers","following_url":"https://api.github.com/users/KartikTalwar/following{/other_user}","gists_url":"https://api.github.com/users/KartikTalwar/gists{/gist_id}","starred_url":"https://api.github.com/users/KartikTalwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KartikTalwar/subscriptions","organizations_url":"https://api.github.com/users/KartikTalwar/orgs","repos_url":"https://api.github.com/users/KartikTalwar/repos","events_url":"https://api.github.com/users/KartikTalwar/events{/privacy}","received_events_url":"https://api.github.com/users/KartikTalwar/received_events","type":"User","site_admin":false},"repo":{"id":12909475,"name":"gmail.js","full_name":"KartikTalwar/gmail.js","owner":{"login":"KartikTalwar","id":461702,"avatar_url":"https://avatars.githubusercontent.com/u/461702?v=3","gravatar_id":"","url":"https://api.github.com/users/KartikTalwar","html_url":"https://github.com/KartikTalwar","followers_url":"https://api.github.com/users/KartikTalwar/followers","following_url":"https://api.github.com/users/KartikTalwar/following{/other_user}","gists_url":"https://api.github.com/users/KartikTalwar/gists{/gist_id}","starred_url":"https://api.github.com/users/KartikTalwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KartikTalwar/subscriptions","organizations_url":"https://api.github.com/users/KartikTalwar/orgs","repos_url":"https://api.github.com/users/KartikTalwar/repos","events_url":"https://api.github.com/users/KartikTalwar/events{/privacy}","received_events_url":"https://api.github.com/users/KartikTalwar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KartikTalwar/gmail.js","description":"Gmail JavaScript API","fork":false,"url":"https://api.github.com/repos/KartikTalwar/gmail.js","forks_url":"https://api.github.com/repos/KartikTalwar/gmail.js/forks","keys_url":"https://api.github.com/repos/KartikTalwar/gmail.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KartikTalwar/gmail.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KartikTalwar/gmail.js/teams","hooks_url":"https://api.github.com/repos/KartikTalwar/gmail.js/hooks","issue_events_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/events{/number}","events_url":"https://api.github.com/repos/KartikTalwar/gmail.js/events","assignees_url":"https://api.github.com/repos/KartikTalwar/gmail.js/assignees{/user}","branches_url":"https://api.github.com/repos/KartikTalwar/gmail.js/branches{/branch}","tags_url":"https://api.github.com/repos/KartikTalwar/gmail.js/tags","blobs_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KartikTalwar/gmail.js/statuses/{sha}","languages_url":"https://api.github.com/repos/KartikTalwar/gmail.js/languages","stargazers_url":"https://api.github.com/repos/KartikTalwar/gmail.js/stargazers","contributors_url":"https://api.github.com/repos/KartikTalwar/gmail.js/contributors","subscribers_url":"https://api.github.com/repos/KartikTalwar/gmail.js/subscribers","subscription_url":"https://api.github.com/repos/KartikTalwar/gmail.js/subscription","commits_url":"https://api.github.com/repos/KartikTalwar/gmail.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/KartikTalwar/gmail.js/contents/{+path}","compare_url":"https://api.github.com/repos/KartikTalwar/gmail.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KartikTalwar/gmail.js/merges","archive_url":"https://api.github.com/repos/KartikTalwar/gmail.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KartikTalwar/gmail.js/downloads","issues_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues{/number}","pulls_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls{/number}","milestones_url":"https://api.github.com/repos/KartikTalwar/gmail.js/milestones{/number}","notifications_url":"https://api.github.com/repos/KartikTalwar/gmail.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KartikTalwar/gmail.js/labels{/name}","releases_url":"https://api.github.com/repos/KartikTalwar/gmail.js/releases{/id}","deployments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/deployments","created_at":"2013-09-17T23:34:55Z","updated_at":"2016-08-22T05:59:14Z","pushed_at":"2016-08-22T18:16:05Z","git_url":"git://github.com/KartikTalwar/gmail.js.git","ssh_url":"git@github.com:KartikTalwar/gmail.js.git","clone_url":"https://github.com/KartikTalwar/gmail.js.git","svn_url":"https://github.com/KartikTalwar/gmail.js","homepage":"","size":1002,"stargazers_count":2808,"watchers_count":2808,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":267,"mirror_url":null,"open_issues_count":88,"forks":267,"open_issues":88,"watchers":2808,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/297"},"html":{"href":"https://github.com/KartikTalwar/gmail.js/pull/297"},"issue":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/297"},"comments":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/statuses/56e3ade3e82c7675681431ed29f08641fb1b2c3a"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"bpirtle"}}