-
-
Notifications
You must be signed in to change notification settings - Fork 67
Description
Version
6.0.1
Current Behavior
I'm working on a MV3 extension built using WXT and Webext-bridge, and can confirm everything is working as expected on Chrome and Firefox.
My main issue is with Safari.
This is the only error in the background script console:
Unhandled Promise Rejection: SyntaxError: The string did not match the expected pattern.
As mentioned in the title it primarily happens in Background -> content-script messages.
I was able to temporarily work around this by reverting back to the native approach (i.e. browser.runtime.addEventListener() and browser.tabs.sendMessage()).
I've come to really appreciate the lack of boilerplate of this library though, and would love to continue using it.
Expected Behavior
sendMessage() should work as expected regardless of direction and scripting context.
Steps To Reproduce
- use sendMessage() in background.ts
- Expect a message in the onMessage() handler in a content-script.ts
Anything else?
No response