开发者

What variables are available in extension scope (like window, gBrowser)?

开发者 https://www.devze.com 2023-03-11 21:31 出处:网络
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 enum

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消