1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 13:35:48 +01:00

Use temp files rather than URL arguments for :viewsource!. Also update the statusline on :redraw and add an XPCOM shim class for pseudo-XPCOM objects.

This commit is contained in:
Kris Maglione
2010-10-03 13:44:37 -04:00
parent cbed89d8ba
commit 72b6af3e6b
8 changed files with 123 additions and 25 deletions

View File

@@ -24,7 +24,7 @@ const history = services.get("history");
const tagging = services.get("tagging");
const name = "bookmark-cache";
const BookmarkCache = Module("BookmarkCache", {
const BookmarkCache = Module("BookmarkCache", XPCOM(Ci.nsINavBookmarkObserver), {
init: function init() {
bookmarks.addObserver(this, false);
},
@@ -116,11 +116,6 @@ const BookmarkCache = Module("BookmarkCache", {
return bookmarks;
},
onBeforeItemRemoved: function () {},
onBeginUpdateBatch: function () {},
onEndUpdateBatch: function () {},
onItemVisited: function () {},
onItemMoved: function () {},
onItemAdded: function onItemAdded(itemId, folder, index) {
if (bookmarks.getItemType(itemId) == bookmarks.TYPE_BOOKMARK) {
if (this.isBookmark(itemId)) {
@@ -147,8 +142,7 @@ const BookmarkCache = Module("BookmarkCache", {
storage.fireEvent(name, "change", { __proto__: bookmark, changed: property });
}
}
},
QueryInterface: XPCOMUtils.generateQI([Ci.nsINavBookmarkObserver])
}
}, {
getFavicon: function getFavicon(uri) {
try {