by aboutruby · 7y ago · 0 comments
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...
Native Messaging allow an Add-on to launch a native application that follows its rules. Basically, the add-on needs to ask for nativeMessaging permission, as this one does in:
https://github.com/hensm/fx_cast/blob/master/ext/src/manifes...
And the native application needs to whitelist the add-on as someone who can call them, as seen in:
https://github.com/hensm/fx_cast/blob/master/app/bin/build.j...
You can see similar setups in many of the WebExtensions that are exploring the p2p/dweb/decentralization space.
PS: I am not the author, I checked the source and knew what to look for.