mleibman/SlickGrid — Issue #259: firebugx.js won't detect Firebug 1.9 - with patch
Author: rohanc
Created: 2011-12-31 01:13:42+00:00
State: open

The Firebug detection code in firebugx.js is not effective if you upgrade to Firebug 1.9 (currently in beta). You end up with console logging disabled, even though the Firebug console is available.

I use Slickgrid 2.0 alpha, but I notice the same problem code in the master branch.

Solution: On my system, I changed the test in firebugx.js from this:

if (!("console" in window) || !("firebug" in console))

to this:

if (typeof console === "undefined" || typeof console.log === "undefined") {

I made some comments about this in the Firebug bug database, which documents their decision to make it impossible to detect Firebug:

http://code.google.com/p/fbug/issues/detail?id=4772

Rohan