talideon.com

...randomly generated messages

May 1, 2007 at 10:16AM Fixing Firebug’s chrome under FreeBSD

I’ve had one longstanding problem with Firebug’s chrome rendering under FreeBSD, specifically that it doesn’t render half of it. I kid you not: whereas on Linux I get nice shiny red buttons, shiny tabs, subtle gradients, and so on, under FreeBSD I get none of it. It’s still usable, but some of the buttons, like the hide/reveal console button, end up well hidden.

I cracked last night and decided to investigate what was going on. I checked the ‘platform’ directory first as that holds platform-specific files:

$ cd ~/.mozilla/firefox/ws8ra29n.default/
$ ls extensions/firebug@software.joehewitt.com/platform/
Darwin  Linux  linux-gnu  WINNT

[In case you’re wondering, I’m pulling those paths off the Ubuntu box I use at work, not my FreeBSD box. YMMV.]

Right... I made a copy of the ‘Linux’ directory called ‘FreeBSD’ (though the ‘linux-gnu’ and ‘WINNT’ directories would have worked just fine), restarted Firefox, and magically it was displaying the correct chrome. Problem solved.

But I didn’t stop there. I was still a little left feeling a bit uncomfortable by the fact that I’d expected some kind of fallbacks to be in place for people such as myself who weren’t running one of the platforms listed in the platform directory. Unfortunately there was nothing, not a sausage anywhere, to cope with situations where there it’s running under a platform not listed under ‘platform’. I poke around the code revealed no workarounds in the code, so I submitted a bug to the Firebug bugtracker. We’re not talking about a high priority bug here or anything, but it is something of a major annoyance.

Update (June 4th): Hurray! It seems this this going to be fixed in an upcoming release: see issue 160, where I reported the problem and issue 182, where the fix is specified and not too far off my own naive suggested fix.

Technorati Search Technorati Search Irish Bloggers

Comments

1 On May 1, 2007 at 10:57, Niall wrote:

Linux FTW ;) Although that is a bit of a annonyance.

Post a comment

All form information is optional, but it’s a good idea to fill in your name and email address if you want me to take your comment seriously.

Spammers, don’t bother posting crap down here. The site is set up so that legitimate search engines (Google, for instance) won’t index pages with comments on them. Posting crud here only means you’re wasting my time and patience. Shoo!

Real names, please. Please include!
Won’t be displayed. Please include!
Displayed, if present.