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

Side by Side Diff: background.js

Issue 5225119261655040: Issue 1282 - Don't generate filters conflicting with existing exception rules (Closed)
Patch Set: Rebased Created Feb. 13, 2015, 4:13 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 | include.postload.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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 case "add-sitekey": 553 case "add-sitekey":
554 processKey(msg.token, sender.page, sender.frame); 554 processKey(msg.token, sender.page, sender.frame);
555 break; 555 break;
556 case "report-html-page": 556 case "report-html-page":
557 htmlPages.set(sender.page, null); 557 htmlPages.set(sender.page, null);
558 refreshIconAndContextMenu(sender.page); 558 refreshIconAndContextMenu(sender.page);
559 break; 559 break;
560 case "compose-filters": 560 case "compose-filters":
561 sendResponse(composeFilters( 561 sendResponse(composeFilters(
562 msg.tagName, msg.id, msg.src, msg.style, 562 msg.tagName, msg.id, msg.src, msg.style,
563 msg.classes, msg.urls, new URL(msg.baseURL) 563 msg.classes, msg.urls, msg.mediatype,
564 msg.baseURL, sender.page, sender.frame
564 )); 565 ));
565 break; 566 break;
566 case "forward": 567 case "forward":
567 if (sender.page) 568 if (sender.page)
568 { 569 {
569 if (msg.expectsResponse) 570 if (msg.expectsResponse)
570 { 571 {
571 sender.page.sendMessage(msg.payload, sendResponse); 572 sender.page.sendMessage(msg.payload, sendResponse);
572 return true; 573 return true;
573 } 574 }
(...skipping 10 matching lines...) Expand all
584 page.sendMessage({type: "clickhide-deactivate"}); 585 page.sendMessage({type: "clickhide-deactivate"});
585 refreshIconAndContextMenu(page); 586 refreshIconAndContextMenu(page);
586 }); 587 });
587 588
588 setTimeout(function() 589 setTimeout(function()
589 { 590 {
590 var notificationToShow = NotificationStorage.getNextToShow(); 591 var notificationToShow = NotificationStorage.getNextToShow();
591 if (notificationToShow) 592 if (notificationToShow)
592 showNotification(notificationToShow); 593 showNotification(notificationToShow);
593 }, 3 * 60 * 1000); 594 }, 3 * 60 * 1000);
OLDNEW
« no previous file with comments | « no previous file | include.postload.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld