DescriptionThis review contains the following changes:
- UI pages now have to register listeners using `browser.runtime.connect()` instead of `browser.runtime.sendMessage()`
- Background page will respond using `postMessage()` on the port instead of using `sendMessage()` on the page
- Only pass on first argument we receive from `FilterNotifier` listener (none of the UI pages use any of the other ones)
Later on we could also receive all other messages via that very same port that's introduced in this review.
Patch Set 1 #
Total comments: 3
Patch Set 2 : Use less generic name for only listener argument we care about #
Total comments: 6
Patch Set 3 : Fixed linting errors #Patch Set 4 : Added message passing mock for ports #
Total comments: 4
MessagesTotal messages: 14
|