I am now in the fortunate position of having Mac OS X, Win XP and Linux (FC6) but after a couple of days trying to sort out my Flock extensions to work in the forthcoming 0.8 release, I have had a cross platform eye opener.
Mozilla/Firefox/Flock are all cross platform, and whilst busy making my extensions had always assumed that if the extensions simple xul code worked in windows, so it would work in Mac and Linux - not so it would seem.
The main issue I have stumbled across of late is the window behaviour. In blogplus I had been using hidechrome, fine for windows and linux, and only after recently getting my mac did I discover we need the additional titlebar=no. Thats sorted with the windows then, oh wait, hold on a minute, alwaysRaised only works in windows grrr, this is proving to be a bit of a pain.
There are other slight differences such as the handling of css. Windows was showing my window as a 0.5 opacity, Linux and Mac not handling the opacity properly at all.
For the time being, I am happy that the core functionality of my extensions now works in 0.8 and will tackle the minor annoyances over time. The one exception is the blogplus contextual toolbar which relies on the opacity and alwaysRaised - without these two it just becomes a stupid, useless background window for mac/linux users. The only possible fix I can think of just now is to forget writing the toolbar in xul and inject it as an absolute positioned div into the editor. One major drawback to this approach though, if it is not 100% watertight and removed from the body tags before posting, everyone is going to end up with a silly div in their blog post
These things are sent down to test us, and I guess we all like a challenge now and again….
technorati tags:flock, extensions, xul
Blogged with Flock