{"action":"created","comment":{"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/comments/73260436","id":73260436,"diff_hunk":"@@ -69,9 +80,17 @@ const {\n \n addCommonBackgroundListeners(addListener);\n \n-addListener('deleteCookies', cookies =>\n-\tcookies.forEach(({ name }) => cookieManager.remove('.reddit.com', name, '/', false, false))\n-);\n+addListener('deleteCookies', cookies => {\n+\tfor (const { host, name, path, originAttributes } of cookieManager.enumerator::asGenerator(Ci.nsICookie)) {","path":"firefox/background.entry.js","position":26,"original_position":26,"commit_id":"63d0f094081982158db1c19790b0429ffab106f9","original_commit_id":"63d0f094081982158db1c19790b0429ffab106f9","user":{"login":"erikdesjardins","id":7673145,"avatar_url":"https://avatars.githubusercontent.com/u/7673145?v=3","gravatar_id":"","url":"https://api.github.com/users/erikdesjardins","html_url":"https://github.com/erikdesjardins","followers_url":"https://api.github.com/users/erikdesjardins/followers","following_url":"https://api.github.com/users/erikdesjardins/following{/other_user}","gists_url":"https://api.github.com/users/erikdesjardins/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdesjardins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdesjardins/subscriptions","organizations_url":"https://api.github.com/users/erikdesjardins/orgs","repos_url":"https://api.github.com/users/erikdesjardins/repos","events_url":"https://api.github.com/users/erikdesjardins/events{/privacy}","received_events_url":"https://api.github.com/users/erikdesjardins/received_events","type":"User","site_admin":false},"body":"I'd love to be able to get the `originAttributes` without iterating through every single cookie, but I can't find any (documented) API that will let me do that (in [nsICookieManager](https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsICookieManager) or [nsICookieManager2](https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsICookieManager2)).\r\n\r\nOne might expect to be able to use [getCookiesFromHost()](https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsICookieManager2#getCookiesFromHost()), but nope, it also requires `originAttributes`, though this is not documented:\r\n\r\n![](https://cloud.githubusercontent.com/assets/7673145/17349370/1b240184-58eb-11e6-9502-1f4e3363d6b3.PNG)\r\n\r\nIn any case, we'll be switching to WebExtensions at some point in the (hopefully) near future and this code will disappear.","created_at":"2016-08-03T00:00:31Z","updated_at":"2016-08-03T00:00:31Z","html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3222#discussion_r73260436","pull_request_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3222","_links":{"self":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/comments/73260436"},"html":{"href":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3222#discussion_r73260436"},"pull_request":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3222"}}},"pull_request":{"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3222","id":79828398,"html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3222","diff_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3222.diff","patch_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3222.patch","issue_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/3222","number":3222,"state":"open","locked":false,"title":"Update account switcher cookie removal for Firefox 48","user":{"login":"erikdesjardins","id":7673145,"avatar_url":"https://avatars.githubusercontent.com/u/7673145?v=3","gravatar_id":"","url":"https://api.github.com/users/erikdesjardins","html_url":"https://github.com/erikdesjardins","followers_url":"https://api.github.com/users/erikdesjardins/followers","following_url":"https://api.github.com/users/erikdesjardins/following{/other_user}","gists_url":"https://api.github.com/users/erikdesjardins/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdesjardins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdesjardins/subscriptions","organizations_url":"https://api.github.com/users/erikdesjardins/orgs","repos_url":"https://api.github.com/users/erikdesjardins/repos","events_url":"https://api.github.com/users/erikdesjardins/events{/privacy}","received_events_url":"https://api.github.com/users/erikdesjardins/received_events","type":"User","site_admin":false},"body":"...now that it is stable.\r\n\r\nFixes #3052.","created_at":"2016-08-02T23:53:13Z","updated_at":"2016-08-03T00:00:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b2c94ea11374e09a99ee9e9a93868098f140b63","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/milestones/17","html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/milestones/v4.7","labels_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/milestones/17/labels","id":1163945,"number":17,"title":"v4.7","description":"arbitrary new features\r\n\r\nmedium-sized housekeeping\r\n\r\nnew bugfixes\r\n\r\narbitrary date a month or two after 4.6","creator":{"login":"andytuba","id":455632,"avatar_url":"https://avatars.githubusercontent.com/u/455632?v=3","gravatar_id":"","url":"https://api.github.com/users/andytuba","html_url":"https://github.com/andytuba","followers_url":"https://api.github.com/users/andytuba/followers","following_url":"https://api.github.com/users/andytuba/following{/other_user}","gists_url":"https://api.github.com/users/andytuba/gists{/gist_id}","starred_url":"https://api.github.com/users/andytuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andytuba/subscriptions","organizations_url":"https://api.github.com/users/andytuba/orgs","repos_url":"https://api.github.com/users/andytuba/repos","events_url":"https://api.github.com/users/andytuba/events{/privacy}","received_events_url":"https://api.github.com/users/andytuba/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":229,"state":"open","created_at":"2015-06-14T20:11:33Z","updated_at":"2016-08-02T23:53:13Z","due_on":"2016-07-22T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3222/commits","review_comments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3222/comments","review_comment_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/3222/comments","statuses_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/statuses/63d0f094081982158db1c19790b0429ffab106f9","head":{"label":"erikdesjardins:firefox-48-acct-switcher","ref":"firefox-48-acct-switcher","sha":"63d0f094081982158db1c19790b0429ffab106f9","user":{"login":"erikdesjardins","id":7673145,"avatar_url":"https://avatars.githubusercontent.com/u/7673145?v=3","gravatar_id":"","url":"https://api.github.com/users/erikdesjardins","html_url":"https://github.com/erikdesjardins","followers_url":"https://api.github.com/users/erikdesjardins/followers","following_url":"https://api.github.com/users/erikdesjardins/following{/other_user}","gists_url":"https://api.github.com/users/erikdesjardins/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdesjardins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdesjardins/subscriptions","organizations_url":"https://api.github.com/users/erikdesjardins/orgs","repos_url":"https://api.github.com/users/erikdesjardins/repos","events_url":"https://api.github.com/users/erikdesjardins/events{/privacy}","received_events_url":"https://api.github.com/users/erikdesjardins/received_events","type":"User","site_admin":false},"repo":{"id":24658917,"name":"Reddit-Enhancement-Suite","full_name":"erikdesjardins/Reddit-Enhancement-Suite","owner":{"login":"erikdesjardins","id":7673145,"avatar_url":"https://avatars.githubusercontent.com/u/7673145?v=3","gravatar_id":"","url":"https://api.github.com/users/erikdesjardins","html_url":"https://github.com/erikdesjardins","followers_url":"https://api.github.com/users/erikdesjardins/followers","following_url":"https://api.github.com/users/erikdesjardins/following{/other_user}","gists_url":"https://api.github.com/users/erikdesjardins/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdesjardins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdesjardins/subscriptions","organizations_url":"https://api.github.com/users/erikdesjardins/orgs","repos_url":"https://api.github.com/users/erikdesjardins/repos","events_url":"https://api.github.com/users/erikdesjardins/events{/privacy}","received_events_url":"https://api.github.com/users/erikdesjardins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erikdesjardins/Reddit-Enhancement-Suite","description":"Reddit Enhancement Suite","fork":true,"url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite","forks_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/forks","keys_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/teams","hooks_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/hooks","issue_events_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/issues/events{/number}","events_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/events","assignees_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/assignees{/user}","branches_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/branches{/branch}","tags_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/tags","blobs_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/git/refs{/sha}","trees_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/statuses/{sha}","languages_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/languages","stargazers_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/stargazers","contributors_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/contributors","subscribers_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/subscribers","subscription_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/subscription","commits_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/commits{/sha}","git_commits_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/git/commits{/sha}","comments_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/comments{/number}","issue_comment_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/issues/comments{/number}","contents_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/contents/{+path}","compare_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/merges","archive_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/downloads","issues_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/issues{/number}","pulls_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/pulls{/number}","milestones_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/milestones{/number}","notifications_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/labels{/name}","releases_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/releases{/id}","deployments_url":"https://api.github.com/repos/erikdesjardins/Reddit-Enhancement-Suite/deployments","created_at":"2014-09-30T23:06:04Z","updated_at":"2016-03-25T21:09:38Z","pushed_at":"2016-08-02T23:51:05Z","git_url":"git://github.com/erikdesjardins/Reddit-Enhancement-Suite.git","ssh_url":"git@github.com:erikdesjardins/Reddit-Enhancement-Suite.git","clone_url":"https://github.com/erikdesjardins/Reddit-Enhancement-Suite.git","svn_url":"https://github.com/erikdesjardins/Reddit-Enhancement-Suite","homepage":"http://redditenhancementsuite.com","size":23872,"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":"honestbleeps:master","ref":"master","sha":"61328e601c56597aa4ae65a9571061699f499ed5","user":{"login":"honestbleeps","id":323763,"avatar_url":"https://avatars.githubusercontent.com/u/323763?v=3","gravatar_id":"","url":"https://api.github.com/users/honestbleeps","html_url":"https://github.com/honestbleeps","followers_url":"https://api.github.com/users/honestbleeps/followers","following_url":"https://api.github.com/users/honestbleeps/following{/other_user}","gists_url":"https://api.github.com/users/honestbleeps/gists{/gist_id}","starred_url":"https://api.github.com/users/honestbleeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestbleeps/subscriptions","organizations_url":"https://api.github.com/users/honestbleeps/orgs","repos_url":"https://api.github.com/users/honestbleeps/repos","events_url":"https://api.github.com/users/honestbleeps/events{/privacy}","received_events_url":"https://api.github.com/users/honestbleeps/received_events","type":"User","site_admin":false},"repo":{"id":2688907,"name":"Reddit-Enhancement-Suite","full_name":"honestbleeps/Reddit-Enhancement-Suite","owner":{"login":"honestbleeps","id":323763,"avatar_url":"https://avatars.githubusercontent.com/u/323763?v=3","gravatar_id":"","url":"https://api.github.com/users/honestbleeps","html_url":"https://github.com/honestbleeps","followers_url":"https://api.github.com/users/honestbleeps/followers","following_url":"https://api.github.com/users/honestbleeps/following{/other_user}","gists_url":"https://api.github.com/users/honestbleeps/gists{/gist_id}","starred_url":"https://api.github.com/users/honestbleeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestbleeps/subscriptions","organizations_url":"https://api.github.com/users/honestbleeps/orgs","repos_url":"https://api.github.com/users/honestbleeps/repos","events_url":"https://api.github.com/users/honestbleeps/events{/privacy}","received_events_url":"https://api.github.com/users/honestbleeps/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite","description":"Reddit Enhancement Suite","fork":false,"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite","forks_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/forks","keys_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/teams","hooks_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/hooks","issue_events_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/events{/number}","events_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/events","assignees_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/assignees{/user}","branches_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/branches{/branch}","tags_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/tags","blobs_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/refs{/sha}","trees_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/statuses/{sha}","languages_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/languages","stargazers_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/stargazers","contributors_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/contributors","subscribers_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/subscribers","subscription_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/subscription","commits_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/commits{/sha}","git_commits_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/commits{/sha}","comments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/comments{/number}","issue_comment_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/comments{/number}","contents_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/contents/{+path}","compare_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/merges","archive_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/downloads","issues_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues{/number}","pulls_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls{/number}","milestones_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/milestones{/number}","notifications_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/labels{/name}","releases_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/releases{/id}","deployments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/deployments","created_at":"2011-11-01T16:31:51Z","updated_at":"2016-08-02T22:28:15Z","pushed_at":"2016-08-02T23:53:13Z","git_url":"git://github.com/honestbleeps/Reddit-Enhancement-Suite.git","ssh_url":"git@github.com:honestbleeps/Reddit-Enhancement-Suite.git","clone_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite.git","svn_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite","homepage":"http://redditenhancementsuite.com","size":124244,"stargazers_count":1137,"watchers_count":1137,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":513,"mirror_url":null,"open_issues_count":541,"forks":513,"open_issues":541,"watchers":1137,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3222"},"html":{"href":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3222"},"issue":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/3222"},"comments":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/3222/comments"},"review_comments":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3222/comments"},"review_comment":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3222/commits"},"statuses":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/statuses/63d0f094081982158db1c19790b0429ffab106f9"}}}}
{"actor":{"display_login":"erikdesjardins"}}