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 Jan. 25, 2015, 1:23 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 case "add-sitekey": 559 case "add-sitekey":
560 processKey(msg.token, sender.page, sender.frame); 560 processKey(msg.token, sender.page, sender.frame);
561 break; 561 break;
562 case "report-html-page": 562 case "report-html-page":
563 htmlPages.set(sender.page, null); 563 htmlPages.set(sender.page, null);
564 refreshIconAndContextMenu(sender.page); 564 refreshIconAndContextMenu(sender.page);
565 break; 565 break;
566 case "compose-filters": 566 case "compose-filters":
567 sendResponse(composeFilters( 567 sendResponse(composeFilters(
568 msg.tagName, msg.id, msg.src, msg.style, 568 msg.tagName, msg.id, msg.src, msg.style,
569 msg.classes, msg.urls, new URL(msg.baseURL) 569 msg.classes, msg.urls, msg.mediatype,
570 msg.baseURL, sender.page, sender.frame
570 )); 571 ));
571 break; 572 break;
572 case "forward": 573 case "forward":
573 if (sender.page) 574 if (sender.page)
574 { 575 {
575 if (msg.expectsResponse) 576 if (msg.expectsResponse)
576 { 577 {
577 sender.page.sendMessage(msg.payload, sendResponse); 578 sender.page.sendMessage(msg.payload, sendResponse);
578 return true; 579 return true;
579 } 580 }
(...skipping 10 matching lines...) Expand all
590 page.sendMessage({type: "clickhide-deactivate"}); 591 page.sendMessage({type: "clickhide-deactivate"});
591 refreshIconAndContextMenu(page); 592 refreshIconAndContextMenu(page);
592 }); 593 });
593 594
594 setTimeout(function() 595 setTimeout(function()
595 { 596 {
596 var notificationToShow = NotificationStorage.getNextToShow(); 597 var notificationToShow = NotificationStorage.getNextToShow();
597 if (notificationToShow) 598 if (notificationToShow)
598 showNotification(notificationToShow); 599 showNotification(notificationToShow);
599 }, 3 * 60 * 1000); 600 }, 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