rem: document.getElementById("removeAllCookies").disabled = this._view._filtered || (this._view.rowCount == 0); 
add: document.getElementById("removeAllCookies").disabled = this._view._filtered; 
context:   _handleCookieAdded: function (changedCookie, strippedHost)  {    var rowCountImpact = 0;    var addedHost = { value: 0 };    this._addCookie(strippedHost, changedCookie, addedHost);    if (!this._view._filtered) {      // The Host collection for this cookie already exists, and it's not open,       // so don't increment the rowCountImpact becaues the user is not going to      // see the additional rows as they're hidden.       if (addedHost.value || this._hosts[strippedHost].open)        ++rowCountImpact;    }    else {      // We're in search mode, and the cookie being added matches      // the search condition, so add it to the list.       var c = this._makeCookieObject(strippedHost, changedCookie);      if (this._cookieMatchesFilter(c)) {        this._view._filterSet.push(this._makeCookieObject(strippedHost, changedCookie));        ++rowCountImpact;      }    }    // Now update the tree display at the end (we could/should re run the sort    // if any to get the position correct.)    var oldRowCount = this._rowCount;    this._view._rowCount += rowCountImpact;    this._tree.treeBoxObject.rowCountChanged(oldRowCount - 1, rowCountImpact);    document.getElementById("removeAllCookies").disabled = this._view._filtered || (this._view.rowCount == 0);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e2389c272fad4afa64895e7ba2356831bdf5fb99/cookies.js/buggy/browser/components/preferences/cookies.js