How can I use the browser as a UI for a desktop app? The ways I have come up with so far are...
The ideal solution would work with any technology. I know there are options like writing Firefox extensions, but I want to have complete freedom in the backend technology and browser independence.
In Windows, you could embed the IE ActiveX control, which uses the same rendering engine as IE. (That's a plus and a minus) You can set the ScriptObject
property in your host code and access it in Javascript as window.external
to do things that Javascript cannot do.
If you run a local webserver, you could have an exit link in the app that kills the websever.