I'm trying to get my Firefox extension to work Orion. It relies on native messaging (because the wasm version uses SIMD instructions not available in webkit yet) but I'm having issues getting replies from the native app it connects to.
Steps to reproduce:
Install extension:
Install the desktop app backend:
Configure extension to use native messaging:
- Open the extension's options page
- Swich translation backend to translateLocally (if the option is grayed out the json file didn't pop up in the right place, or Orion can't find/start the translateLocally binary)
Monitor the extension's console:
- Open the extension's web inspector thingy
Trigger bug:
- Go to any page, click the extension's button in the toolbar.
- Popup should say something like "Downloading list of available language models…"
Console (explanation🙂
First and second lines is a postMessage & onMessage callback. The warning that follows is expected.
Fourth line is a second postMessage. There is a response, but the onMessage
callback is called with the Port object that's triggered instead of the actual message, it seems.
Orion 0.99.121.1-beta
macOS Ventura 13.0.1
Intel macbook pro, 16" 2019