Snippets code from my daily experience

June 30, 2007

Flock is a bug!!!!

Filed under: firefox,flock,mozilla,xpcom — dafi @ 9:34 am

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 ( == "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 😦



  1. Try this

    var feedButton = document.getElementById(“favoritesFeedButton”) ||

    Comment by LouCypher — July 6, 2007 @ 7:27 am

  2. Thanks for your hint 🙂

    Yes now it works 🙂

    Comment by dafi — July 6, 2007 @ 7:35 am

  3. but the DOM element feed-button exists in flock

    That’s why “favoritesFeedButton” was mentioned first in getElementById

    Glad it’s finally works 🙂

    Comment by LouCypher — July 6, 2007 @ 8:06 am

RSS feed for comments on this post.

Blog at

%d bloggers like this: