Chrome extensions have an API called Native Messaging which is roughly the postMessage API over stdin/stdout. It works, but isn't cross-browser. Alternatively, you can start up a local server and make XHR or WebSocket calls to localhost. However, both of those require the user going through an external install process. Maybe, in the current security landscape, that's the way it has to be, but it's kind of annoying.
Yes, yes, yes!
There is absolutely no reason why this can't be done. And, here's how it should work:
You go to a website, and you save a page as an html file. Then you go into your browser and load that file as an extension. There is a simple convention where the extension asks for permissions when it attempts the action.
I mean, hey, if there isn't going to be an economic incentive to write these things, you might as well make it easy and fun for devs to write and distribute them.
I'd be OK with a "common core" that's cross-browser, and the browser makers continuing to support their own extension APIs as well, IF the "core" API never becomes as powerful as the old, native APIs. I'd hate to see the native APIs go away completely though, as I don't like the idea of artificially restricting the range of possible plugins.
Then again, I am already annoyed by Chrome ditching NPAPI and leaving us in a place where, AFAIK, you can't run the Java plugin in Chrome. OTOH, JWS still works (I think) which is something at least...