I'm not sure if this is the appropriate place for this kind of
comment, so my apologies in advance if it is not.

I installed Firebug Lite on a page I am debugging and was dismayed to
see that it is instantiated when the page is loaded in Firefox with
the standard Firebug extension already installed.  I am, frankly,
amazed that Firebug Lite does not detect that the Firebug extension is
present and bail out early.  This seems like a very basic requirement
that has been overlooked.

Because this behavior is not present, I whipped up the following PHP
code to wrap around the script tag and suppress it when the page is
viewed in Firefox:

<?php if (empty($_SERVER['HTTP_USER_AGENT']) || strpos($_SERVER
['HTTP_USER_AGENT'],'Firefox')===false) { ?>
<script type='text/javascript' src='http://getfirebug.com/releases/
lite/1.2/firebug-lite-compressed.js'></script>
<?php } ?>

This workaround seems to work well enough, but this seems like
something that Firebug Lite should be handling for me.  I am using
Firefox 3.0.5 on Ubuntu Linux with Firebug version 1.3.0 and Firebug
Lite version 1.2.

Thanks,
Dan
http://www.drlongghost.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to