https://wiki.mozilla.org/WebExtensions#Additional_APIs Native Messaging is a great concept but the current solution is only a crude "workaround".