This is a Firefox extension and everything is working pretty good.
BUT... I keep getting the irritating "gBrowser is not defined" error in the console because of this line:
gBrowser.selectedTab = gBrowser.addTab("chrome://ire_TPB/content/options.html");
What I am trying to do of course is open a new tab and load that local html page.
What am I doing wrong?
Thanks!
Win 7 ult
FF 7.0
From Mozilla Documentation: "If gBrowser isn't defined your code is either not running in the scope of the browser window or running too early. You can access gBrowser only after the browser window is fully loaded."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With