Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I know about window, gBrowser, gContextMenu and some more but what are all global variables available to Firefox extensions?

like image 666
Ali Shakiba Avatar asked Jan 01 '26 12:01

Ali Shakiba


1 Answers

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.

like image 126
Tyler Avatar answered Jan 03 '26 03:01

Tyler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!