What variables are available in extension scope (like window, gBrowser)?
I know about window
, gB开发者_StackOverflow社区rowser
, gContextMenu
and some more but what are all global variables available to Firefox extensions?
Open the JS shell in Extension Developer. Click enumerateWindows()
and then chrome://browser/content/browser.xul
. Then type props(window)
to see all the global variables (since global variables in JavaScript are really just properties of window
. Note however that there have been some reports of Extension Developer causing weird stuff to happen on Firefox 4.
精彩评论