summaryrefslogtreecommitdiff
path: root/common/modules/bookmarkcache.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/bookmarkcache.jsm')
-rw-r--r--common/modules/bookmarkcache.jsm2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/modules/bookmarkcache.jsm b/common/modules/bookmarkcache.jsm
index afaa56b9..8f12b6a4 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);