I need one hidden iframe for all opened Firefox windows.
For now I’m creating iframe inside XUL overlay, so it is created for each browser window.
I think i should use XPCOM component to have single iframe instance for all browser windows, but i can’t find way how to create XUL elements from it.
Is it possible?
You can create a frame inside the hidden window:
However, if all you need is a place to run your global code then there are better ways – like JavaScript code modules.