Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: adblockplus/Api.jsm

Issue 5391942804307968: Issue 2473 - Interaction with ABP doesn't work (Closed)
Patch Set: Created May 7, 2015, 9:09 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 { 138 {
139 FilterStorage.removeFilter(filter); 139 FilterStorage.removeFilter(filter);
140 if (filter.subscriptions.length) 140 if (filter.subscriptions.length)
141 filter.disabled = true; 141 filter.disabled = true;
142 filter = getWhitelistingFilter(url); 142 filter = getWhitelistingFilter(url);
143 } 143 }
144 } 144 }
145 }, 145 },
146 initCommunication: function() 146 initCommunication: function()
147 { 147 {
148 RequestService.addListener((function(data) 148 Messaging.addListener((function(data)
149 { 149 {
150 if (!data) 150 if (!data)
151 return {"success": false, "error": "malformed request"}; 151 return {"success": false, "error": "malformed request"};
152 152
153 if (data["action"] == "getFiltersLoaded") 153 if (data["action"] == "getFiltersLoaded")
154 return {"success": true, "value": this.filtersLoaded}; 154 return {"success": true, "value": this.filtersLoaded};
155 155
156 if (!this.filtersLoaded) 156 if (!this.filtersLoaded)
157 return {"success": false, "error": "filters not loaded"}; 157 return {"success": false, "error": "filters not loaded"};
158 158
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 { 205 {
206 this.whitelistSite(data["url"], data["whitelisted"]); 206 this.whitelistSite(data["url"], data["whitelisted"]);
207 return {"success": true}; 207 return {"success": true};
208 } 208 }
209 break; 209 break;
210 } 210 }
211 return {"success": false, "error": "malformed request"}; 211 return {"success": false, "error": "malformed request"};
212 }).bind(this), "AdblockPlus:Api"); 212 }).bind(this), "AdblockPlus:Api");
213 } 213 }
214 }; 214 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld