]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/modules/bookmarkcache.jsm
Import 1.0b7.1 supporting Firefox up to 8.*
[dactyl.git] / common / modules / bookmarkcache.jsm
index afaa56b91bcf1674296bc014db288acd9ad721c1..e85a7c6c978b4c415bd847f788eaf6365692b37f 100644 (file)
@@ -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 = {};