Left: | ||
Right: |
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-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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 } | 177 } |
178 else | 178 else |
179 bidiDir = Utils.readingDirection; | 179 bidiDir = Utils.readingDirection; |
180 | 180 |
181 return {locale: Utils.appLocale, bidiDir}; | 181 return {locale: Utils.appLocale, bidiDir}; |
182 } | 182 } |
183 | 183 |
184 if (message.what == "features") | 184 if (message.what == "features") |
185 { | 185 { |
186 return { | 186 return { |
187 devToolsPanel: info.platform == "chromium" | 187 devToolsPanel: info.platform == "chromium" || |
188 info.application == "firefox" && | |
Sebastian Noack
2017/09/14 23:30:49
I explicitly check for `application == "firefox" h
Manish Jethani
2017/09/15 11:37:14
Acknowledged.
Manish Jethani
2017/09/15 11:37:14
We'll have to use parseInt here since the applicat
Thomas Greiner
2017/09/15 12:20:04
Well spotted. Note that we usually use `Services.v
Sebastian Noack
2017/09/15 16:51:47
Done.
| |
189 info.applicationVersion >= 54 | |
188 }; | 190 }; |
189 } | 191 } |
190 | 192 |
191 return info[message.what]; | 193 return info[message.what]; |
192 }); | 194 }); |
193 | 195 |
194 port.on("app.listen", (message, sender) => | 196 port.on("app.listen", (message, sender) => |
195 { | 197 { |
196 getListenerFilters(sender.page).app = message.filter; | 198 getListenerFilters(sender.page).app = message.filter; |
197 }); | 199 }); |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
434 if (message.url) | 436 if (message.url) |
435 subscriptions = [Subscription.fromURL(message.url)]; | 437 subscriptions = [Subscription.fromURL(message.url)]; |
436 | 438 |
437 for (let subscription of subscriptions) | 439 for (let subscription of subscriptions) |
438 { | 440 { |
439 if (subscription instanceof DownloadableSubscription) | 441 if (subscription instanceof DownloadableSubscription) |
440 Synchronizer.execute(subscription, true); | 442 Synchronizer.execute(subscription, true); |
441 } | 443 } |
442 }); | 444 }); |
443 })(this); | 445 })(this); |
OLD | NEW |