Regarding this API:
There is missing information how this behaves if I define multiple listeners.
I’ve now few of these in multiple modules (in background script) and it works, but I’m not 100% sure it’s by design.
I would say that:
- all registered listeners are executed in the order the were registered
- if one of the listeners returns a Promise, other listeners won’t fire - that probably also means if one of them returns
trueor if one of them calls
sendResponse(I didn’t test these two).
Is there a way to “request” update of MDN? Or could someone confirm this is the expected behavior and I will update it myself.