| LEFT | RIGHT |
| 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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 devToolsPanel: info.platform == "chromium" || | 193 devToolsPanel: info.platform == "chromium" || |
| 194 info.application == "firefox" && | 194 info.application == "firefox" && |
| 195 parseInt(info.applicationVersion, 10) >= 54 | 195 parseInt(info.applicationVersion, 10) >= 54 |
| 196 }; | 196 }; |
| 197 } | 197 } |
| 198 | 198 |
| 199 if (message.what == "senderId") | 199 if (message.what == "senderId") |
| 200 return sender.page.id; | 200 return sender.page.id; |
| 201 | 201 |
| 202 return info[message.what]; | 202 return info[message.what]; |
| 203 }); | |
| 204 | |
| 205 port.on("app.listen", (message, sender) => | |
| 206 { | |
| 207 getListenerFilters(sender.page).app = message.filter; | |
| 208 }); | 203 }); |
| 209 | 204 |
| 210 port.on("app.collectHits", (message, sender) => | 205 port.on("app.collectHits", (message, sender) => |
| 211 { | 206 { |
| 212 const logRequest = (log) => | 207 const logRequest = (log) => |
| 213 { | 208 { |
| 214 let {filter, request} = log; | 209 let {filter, request} = log; |
| 215 let subscriptions = []; | 210 let subscriptions = []; |
| 216 if (filter) | 211 if (filter) |
| 217 { | 212 { |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 // "*.listen" messages to tackle #6440 | 511 // "*.listen" messages to tackle #6440 |
| 517 if (action == "listen") | 512 if (action == "listen") |
| 518 { | 513 { |
| 519 listen(type, filters, message.filter); | 514 listen(type, filters, message.filter); |
| 520 } | 515 } |
| 521 }); | 516 }); |
| 522 } | 517 } |
| 523 | 518 |
| 524 browser.runtime.onConnect.addListener(onConnect); | 519 browser.runtime.onConnect.addListener(onConnect); |
| 525 })(this); | 520 })(this); |
| LEFT | RIGHT |