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

Side by Side Diff: safari/ext/background.js

Issue 6228201961422848: Issue 2064 - Configure indistinguishable request types in the abstraction layer (Closed)
Patch Set: Ignore MEDIA and FONT filters on Chrome Created March 2, 2015, 7:22 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 | « chrome/ext/background.js ('k') | safari/ext/content.js » ('j') | 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 var items = contextMenuItems.get(page); 288 var items = contextMenuItems.get(page);
289 289
290 items[event.command].onclick(page); 290 items[event.command].onclick(page);
291 }); 291 });
292 292
293 293
294 /* Web requests */ 294 /* Web requests */
295 295
296 ext.webRequest = { 296 ext.webRequest = {
297 onBeforeRequest: new ext._EventTarget(), 297 onBeforeRequest: new ext._EventTarget(),
298 handlerBehaviorChanged: function() {} 298 handlerBehaviorChanged: function() {},
299 indistinguishableTypes: [["OTHER", "FONT"]]
299 }; 300 };
300 301
301 302
302 /* Background page */ 303 /* Background page */
303 304
304 ext.backgroundPage = { 305 ext.backgroundPage = {
305 getWindow: function() 306 getWindow: function()
306 { 307 {
307 return window; 308 return window;
308 } 309 }
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 tab.activate(); 676 tab.activate();
676 if (callback) 677 if (callback)
677 callback(page); 678 callback(page);
678 return; 679 return;
679 } 680 }
680 } 681 }
681 682
682 ext.pages.open(optionsUrl, callback); 683 ext.pages.open(optionsUrl, callback);
683 }; 684 };
684 })(); 685 })();
OLDNEW
« no previous file with comments | « chrome/ext/background.js ('k') | safari/ext/content.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld