| Index: messageResponder.js |
| =================================================================== |
| --- a/messageResponder.js |
| +++ b/messageResponder.js |
| @@ -37,16 +37,19 @@ |
| const info = require("info"); |
| const { |
| Subscription, |
| DownloadableSubscription, |
| SpecialSubscription |
| } = require("subscriptionClasses"); |
| + port.on("types.get", (message, sender) => |
| + Array.from(require("requestBlocker").filterTypes)); |
|
Sebastian Noack
2017/09/05 18:12:14
I wonder whether it would be worth to make sure th
Thomas Greiner
2017/09/06 11:00:25
Good point. We're currently not imposing any order
Jon Sonesen
2017/09/06 13:12:15
What about removing the OTHER return from lib/requ
Sebastian Noack
2017/09/06 17:39:19
I don't think the order matters much, except for O
Jon Sonesen
2017/09/07 07:46:17
Yeah, I agree here. Will do.
Thomas Greiner
2017/09/12 13:06:16
Good point. In that case no objections from my end
|
| + |
| // Some modules doesn't exist on Firefox. Moreover, |
| // require() throws an exception on Firefox in that case. |
| // However, try/catch causes the whole function to to be |
| // deoptimized on V8. So we wrap it into another function. |
| function tryRequire(module) |
| { |
| try |
| { |