Page 1 of 1

[FIXED] BUG: Error: gBrowser is not defined

Posted: Mon Jul 09, 2012 6:01 pm
by gvl
Timestamp: 07/09/2012 08:57:12 PM
Error: gBrowser is not defined
Source File: chrome://noscript/content/noscriptBM.js
Line: 96

Open: Tools -> Web Developer -> Error Console
Press 4-5 times Ctrl-B in main Firefox window. Everytime the bookmarks window is visible the above message is written to console.

Re: BUG: Error: gBrowser is not defined

Posted: Tue Sep 25, 2012 8:47 pm
by Thrawn
I tried this out yesterday, and could reproduce it on NoScript 2.5.5. Just toggle the bookmarks bar and the error appears in the console.

Maybe caused by changes in recent Firefox versions? I'm guessing gBrowser is some kind of reference to a browser component...

Will try a clean profile today, which apparently fixed this bug for another user before, but I don't think that's the trouble.

Re: BUG: Error: gBrowser is not defined

Posted: Thu Sep 27, 2012 3:38 am
by Thrawn
Confirmed with a different profile. Doesn't seem to interfere with anything, just gives the error message.

Re: BUG: Error: gBrowser is not defined

Posted: Thu Sep 27, 2012 2:58 pm
by therube
The line in question, 96:

Code: Select all

        noscriptBM.handleURLBarCommandOriginal = gBrowser.loadURIWithFlags;

Re: BUG: Error: gBrowser is not defined

Posted: Thu Sep 27, 2012 3:41 pm
by Giorgio Maone
Thrawn wrote:I tried this out yesterday, and could reproduce it on NoScript 2.5.5. Just toggle the bookmarks bar and the error appears in the console.
You mean the sidebar, correct? If so, it's just a nuisance (no effect but the error console noise) and will be gone in next build, thanks.

Re: BUG: Error: gBrowser is not defined

Posted: Thu Sep 27, 2012 4:40 pm
by therube
Opening the sidebar & clicking on Bookmarks, or opening Bookmarks Manager directly will generate the Error.
(I only looked from the SeaMonkey side.)

Re: BUG: Error: gBrowser is not defined

Posted: Fri Nov 30, 2012 3:26 pm
by therube
Oh since I happened upon this today:
<RattyAway> Callek: the firefox gBrowser is a lazy getter. Ours [SeaMonkey] is not. So for SM cesar should use getBrowser() instead. [in firefox getBrowser() is a legacy compat wrapper for gBrowser]

Re: BUG: Error: gBrowser is not defined

Posted: Sat Dec 01, 2012 12:52 am
by Thrawn
While we're bumping the thread, I can confirm that this was fixed :). @Giorgio: Yes, it was the bookmarks sidebar.