X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fmodules%2Fbookmarkcache.jsm;fp=common%2Fmodules%2Fbookmarkcache.jsm;h=e85a7c6c978b4c415bd847f788eaf6365692b37f;hb=70740024f9c028c1fd63e1a1850ab062ff956054;hp=afaa56b91bcf1674296bc014db288acd9ad721c1;hpb=718c614c183350706466e22939d0101ca4c87efe;p=dactyl.git diff --git a/common/modules/bookmarkcache.jsm b/common/modules/bookmarkcache.jsm index afaa56b..e85a7c6 100644 --- a/common/modules/bookmarkcache.jsm +++ b/common/modules/bookmarkcache.jsm @@ -30,6 +30,8 @@ update(Bookmark.prototype, { }) Bookmark.setter = function (key, func) this.prototype.__defineSetter__(key, func); Bookmark.setter("url", function (val) { + if (isString(val)) + val = util.newURI(val); let tags = this.tags; this.tags = null; services.bookmarks.changeBookmarkURI(this.id, val); @@ -149,7 +151,6 @@ var BookmarkCache = Module("BookmarkCache", XPCOM(Ci.nsINavBookmarkObserver), { return this.rootFolders.indexOf(root) >= 0; }, - // Should be made thread safe. load: function load() { let bookmarks = {};