2

Text extension:

orion-test-extension.zip
2kB

It is very tedious to troubleshoot extensions in Orion w/ this behaviour

Steps to reproduce:
Happens in compatibility mode

  • Unzip and install extension from file
  • Open extension console
  • Right click on any page > click Orion Test Extension
  • Console logs Got context menu click on extension entry
  • Edit background.js in the extension and change the console.log() to anything other string
  • In Orion click Tools > Extensions > Manage > Reload the test extension & re-open the extension console
  • Right click on any page > click Orion Test Extension
  • Note the same, original log message is logged
  • In the ext manager uninstall and reinstall the extension and try again
  • Note the same, original log message is logged
  • Restart Orion and try again
  • Now the updated message is logged

If you just restart Orion after making the change (without reloading or reinstalling the ext), it works as expected

Expected behavior:

  • When clicking Reloading or Uninstalling/reinstalling an extension, the extension code is totally reloaded, restart of app should not be needed

Orion and macOS:
Version 0.99.109-beta (WebKit 613.1.12)
macOS 12.0.1 (21A559)

Extensions:
DarkReader
Bitwarden
The test extension

    4 months later

    In 0.99.113.2-beta, uninstalling and reinstalling the extension now seems to force to to reload properly, at least in the couple of extensions I've tested so far. However, clicking the reload button still does not work.

    Correction: content scripts are reloaded when uninstalling and reinstalling the extension, but background scripts are not. That still requires restarting Orion.

    Correction 2: Actually, maybe unloading and reloading the extension is enough to get background scripts to reload too. I've just tried that three times now and everything reloaded. In one instance though for some reason I had to restart Orion.

      No one is typing