Replies: 1 comment
-
Fixed by #79, released in https://github.com/aklinker1/webext-core/releases/tag/messaging-v2.0.3 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The proxy services functioning is based on
postMessage()
, which only works with serializable data. It would be nice touch to prevent devs from passing any non-serializable data, like functions or classes (e.g.CustomError
thrown in background script will fail theinstanceof CustomError
check in a content script), to avoid wtf moments when it doesn't reach the other end of the communication channel, being silently filtered out. I thought this could be done with TS by making sure the methods of the object passed todefineProxyService
don't have parameters or return values of illegal types.Beta Was this translation helpful? Give feedback.
All reactions