OLD | NEW |
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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 if (url) | 350 if (url) |
351 addPage(tab, url, false); | 351 addPage(tab, url, false); |
352 } | 352 } |
353 }); | 353 }); |
354 | 354 |
355 | 355 |
356 /* Web requests */ | 356 /* Web requests */ |
357 | 357 |
358 ext.webRequest = { | 358 ext.webRequest = { |
359 onBeforeRequest: new ext._EventTarget(), | 359 onBeforeRequest: new ext._EventTarget(), |
360 handlerBehaviorChanged: function() {}, | 360 handlerBehaviorChanged: function() |
361 indistinguishableTypes: [["OTHER", "FONT"]] | 361 { |
| 362 }, |
| 363 getIndistinguishableTypes: function() |
| 364 { |
| 365 return [["OTHER", "FONT"]]; |
| 366 } |
362 }; | 367 }; |
363 | 368 |
364 | 369 |
365 /* Background page proxy (for access from content scripts) */ | 370 /* Background page proxy (for access from content scripts) */ |
366 | 371 |
367 var backgroundPageProxy = { | 372 var backgroundPageProxy = { |
368 cache: new ext.PageMap(), | 373 cache: new ext.PageMap(), |
369 | 374 |
370 registerObject: function(obj, objects) | 375 registerObject: function(obj, objects) |
371 { | 376 { |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 tab.activate(); | 760 tab.activate(); |
756 if (callback) | 761 if (callback) |
757 callback(page); | 762 callback(page); |
758 return; | 763 return; |
759 } | 764 } |
760 } | 765 } |
761 | 766 |
762 ext.pages.open(optionsUrl, callback); | 767 ext.pages.open(optionsUrl, callback); |
763 }; | 768 }; |
764 })(); | 769 })(); |
OLD | NEW |