6

Messages sent using the native messaging interface to Orion seem to be limited to 16380 bytes; any messages over that threshold will be dropped. This differs from both Firefox and Chrome, where the size limit for messages from applications is limited to 1MB. This can cause unexpected behavior for some extensions that use native messaging to pass around extension state.

This causes some extension issues. For example:

  • Install StopTheMadness Pro (I'm using the Firefox extension)
  • In "custom <style> element", paste in a stylesheet larger than 16MB. Most of the top themes on userstyles.world will be over this threshold. (I actually ran into this issue with a much smaller stylesheet, around 6KB, but that may be because I already had several other customizations in the app that took up space)
  • The extension will fail with "Settings error: missing settings 0" every time its button is clicked.

Thanks to Jeff Johnson (developer of StopTheMadness) for figuring out the cause of this bug.

Native messaging size should match both FF and Chrome (1MB host -> browser, 4GB browser -> host).

Version 0.99.127.2-beta (WebKit 619.1.1), MacOS 14.4.1

    No one is typing