« What's Up, Doctype? | Main | .exe TLD Coming Soon? »
January 31, 2008
Quick Note to Extension Developers About browser.xul ID Changes
Edit: The changes that caused this were removed (see mfinkle's blog).
I filed bug 415099 today because certain ids where changed in browser.xul that broke my extension overnight.
So if you overlay browser.xul, you should make sure it works with today's build.
Sadly, the id change seems to be actually needed to fix a bug, so extension authors will need to work around this. Read on for a way to work around it.
To work around this, you can do:
<toolbox id="navigator-toolbox">
<vbox id="goat"></vbox>
</toolbox>
<toolbox id="browser-toolbox">
<vbox id="goat"></vbox>
</toolbox>
<vbox id="goat" class="zebra">
...
</vbox>
This allows you to only define your content (the goat vbox) once, as the overlay engine will overlay the definition unto the "dummy" version in the toolbox.
(thanks to Ratty on irc for reminding me of this)
Posted by doron at January 31, 2008 9:25 AM
Trackback Pings
TrackBack URL for this entry:
http://weblogs.mozillazine.org/mt/track.cgi/12364
Listed below are links to weblogs that reference Quick Note to Extension Developers About browser.xul ID Changes:
» Extender from Extender
Microsoft announced that the Extender technology will be incorporated in HP\' current line of Medi [Read More]
Tracked on March 13, 2008 3:06 AM