1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 13:47:59 +01:00

Fix some noise on FF 3.6.

This commit is contained in:
Kris Maglione
2010-09-22 15:33:25 -04:00
parent a37167b95a
commit a7ef6e47c7
2 changed files with 8 additions and 11 deletions

View File

@@ -20,8 +20,8 @@
return;
}
catch (e) {
if (e !== "Error opening input stream (invalid filename?)") {
dump("dactyl: Trying: " + (base + script + ".js") + ": " + e + "\n" + e.stack);
if (typeof e !== "string") {
dump("dactyl: Trying: " + (base + script + ".js") + ": " + e + "\n" + e.stack + "\n");
Components.utils.reportError(e);
}
}

View File

@@ -111,10 +111,11 @@ const BookmarkCache = Module("BookmarkCache", {
return bookmarks;
},
onBeginUpdateBatch: function onBeginUpdateBatch() {},
onEndUpdateBatch: function onEndUpdateBatch() {},
onItemVisited: function onItemVisited() {},
onItemMoved: function onItemMoved() {},
onBeforeItemRemoved: function () {},
onBeginUpdateBatch: function onBeginUpdateBatch() {},
onEndUpdateBatch: function onEndUpdateBatch() {},
onItemVisited: function onItemVisited() {},
onItemMoved: function onItemMoved() {},
onItemAdded: function onItemAdded(itemId, folder, index) {
if (bookmarks.getItemType(itemId) == bookmarks.TYPE_BOOKMARK) {
if (this.isBookmark(itemId)) {
@@ -140,11 +141,7 @@ const BookmarkCache = Module("BookmarkCache", {
storage.fireEvent(name, "change", itemId);
}
},
QueryInterface: function QueryInterface(iid) {
if (iid.equals(Ci.nsINavBookmarkObserver) || iid.equals(Ci.nsISupports))
return this;
throw Cr.NS_ERROR_NO_INTERFACE;
}
QueryInterface: XPCOMUtils.generateQI([Ci.nsINavBookmarkObserver])
}, {
getFavicon: function getFavicon(uri) {
try {