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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 let listener = this.listeners.get(window); | 683 let listener = this.listeners.get(window); |
684 listener.detach(); | 684 listener.detach(); |
685 this.listeners.delete(window); | 685 this.listeners.delete(window); |
686 } | 686 } |
687 }); | 687 }); |
688 | 688 |
689 break; | 689 break; |
690 } | 690 } |
691 | 691 |
692 case "fennec2": | 692 case "fennec2": |
| 693 case "adblockbrowser": |
693 { | 694 { |
694 exports.isKnownWindow = (window) => window.document.documentElement.id == "m
ain-window"; | 695 exports.isKnownWindow = (window) => window.document.documentElement.id == "m
ain-window"; |
695 | 696 |
696 exports.getBrowser = (window) => window.BrowserApp.selectedBrowser; | 697 exports.getBrowser = (window) => window.BrowserApp.selectedBrowser; |
697 | 698 |
698 exports.addTab = (window, url, event) => window.BrowserApp.addTab(url, {sele
cted: true}); | 699 exports.addTab = (window, url, event) => window.BrowserApp.addTab(url, {sele
cted: true}); |
699 | 700 |
700 let BrowserChangeListener = function(window, callback) | 701 let BrowserChangeListener = function(window, callback) |
701 { | 702 { |
702 this.window = window; | 703 this.window = window; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 event.state = {id: require("info").addonID}; | 952 event.state = {id: require("info").addonID}; |
952 browser._contentWindow.dispatchEvent(event); | 953 browser._contentWindow.dispatchEvent(event); |
953 }); | 954 }); |
954 }); | 955 }); |
955 }, true); | 956 }, true); |
956 }; | 957 }; |
957 | 958 |
958 break; | 959 break; |
959 } | 960 } |
960 } | 961 } |
OLD | NEW |