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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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); |
OLD | NEW |