The browser flock is developed starting from Mozilla Gecko code but has many specific features.
Together with many cool features the flock team has added many bugs not present in original Gecko code!
The last I found involves the DOMAttrModified event listener.
The code below works on Firefox 1.5, 2.x and 3.x (thunks) but doesn’t work on flock!!!
onLoad : function() {
var feedButton = document.getElementById("feed-button");
if (feedButton) {
// add the listener for feedButton
document.addEventListener("DOMAttrModified", RichFeed.onAttrModified, false);
// triggers a modification only to test the listener
feedButton.setAttribute("feeds", "true");
// onAttrModified should receive the modification but this doesn't occur on Flock
var v = feedButton.getAttribute("feeds");
}
}
onAttrModified : function(event) {
if (event.target.id == "feed-button") {
// never called with Flock browser
}
}
So my decision is to stop the flock support on my bonzai extensions, I have no time to search workarounds to all flock bugs.
Who cares for my decision? Nobody I know 😦