1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 15:37: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; return;
} }
catch (e) { catch (e) {
if (e !== "Error opening input stream (invalid filename?)") { if (typeof e !== "string") {
dump("dactyl: Trying: " + (base + script + ".js") + ": " + e + "\n" + e.stack); dump("dactyl: Trying: " + (base + script + ".js") + ": " + e + "\n" + e.stack + "\n");
Components.utils.reportError(e); Components.utils.reportError(e);
} }
} }

View File

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