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

Side by Side Diff: chrome/content/ui/filters-backup.js

Issue 29364102: Issue 4658 - Incorporate element hiding emulation filters (Closed) Base URL: https://bitbucket.org/fhd/adblockplus
Patch Set: Improve error message some more Created Dec. 13, 2016, 5:06 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 | chrome/content/ui/filters-filterview.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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 if (filter instanceof CommentFilter && this.GROUPTITLE_REGEXP.test(filte r.text)) 310 if (filter instanceof CommentFilter && this.GROUPTITLE_REGEXP.test(filte r.text))
311 continue; 311 continue;
312 list.push(filter.text); 312 list.push(filter.text);
313 313
314 if (filter instanceof ElemHideException && Services.vc.compare(minVersio n, "2.1") < 0) 314 if (filter instanceof ElemHideException && Services.vc.compare(minVersio n, "2.1") < 0)
315 minVersion = "2.1"; 315 minVersion = "2.1";
316 316
317 if (filter instanceof RegExpFilter && filter.contentType & (RegExpFilter .typeMap.GENERICHIDE | RegExpFilter.typeMap.GENERICBLOCK) && Services.vc.compare (minVersion, "2.6.12") < 0) 317 if (filter instanceof RegExpFilter && filter.contentType & (RegExpFilter .typeMap.GENERICHIDE | RegExpFilter.typeMap.GENERICBLOCK) && Services.vc.compare (minVersion, "2.6.12") < 0)
318 minVersion = "2.6.12"; 318 minVersion = "2.6.12";
319 319
320 if (filter instanceof CSSPropertyFilter && Services.vc.compare(minVersio n, "2.7.3") < 0) 320 if (filter instanceof ElemHideEmulationFilter && Services.vc.compare(min Version, "2.7.3") < 0)
321 minVersion = "2.7.3"; 321 minVersion = "2.7.3";
322 322
323 if (filter instanceof RegExpFilter && 323 if (filter instanceof RegExpFilter &&
324 (filter.contentType & RegExpFilter.typeMap.WEBSOCKET) && 324 (filter.contentType & RegExpFilter.typeMap.WEBSOCKET) &&
325 Services.vc.compare(minVersion, "2.8")) 325 Services.vc.compare(minVersion, "2.8"))
326 { 326 {
327 minVersion = "2.8"; 327 minVersion = "2.8";
328 } 328 }
329 } 329 }
330 } 330 }
(...skipping 15 matching lines...) Expand all
346 Utils.alert(window, E("backupButton").getAttribute("_backupError"), E("b ackupButton").getAttribute("_backupDialogTitle")); 346 Utils.alert(window, E("backupButton").getAttribute("_backupError"), E("b ackupButton").getAttribute("_backupDialogTitle"));
347 } 347 }
348 }); 348 });
349 } 349 }
350 }; 350 };
351 351
352 window.addEventListener("load", function() 352 window.addEventListener("load", function()
353 { 353 {
354 Backup.init(); 354 Backup.init();
355 }, false); 355 }, false);
OLDNEW
« no previous file with comments | « no previous file | chrome/content/ui/filters-filterview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld