The best way to integrate Lua with Firefox/Mozilla/xulrunner is via
XPCOM, which is an open source cross platform version of COM. |
There is a Lua COM library that would be a good starting point, but integrating a scripting language with XPCOM or COM is difficult work, bordering on rocket science.
The incredible Mark Hammond integrated COM and Python (the Python win32com module), and he also integrated XPCOM and Python (the mozilla pyxpcom extension).
The pyxpcom effort to integrate Python into Mozilla resulted in cleaning up the Mozilla code in ways that will make it easier to integrate Lua in the same way.
Jeremy Darling wrote: