From 6a9b1826f94067ceff3fb95c45dc9b147bd595c9 Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Tue, 5 Jun 2007 23:24:39 +0000 Subject: [PATCH] Bug 381534 - cannot drag and drop url from location bar to bookmarks toolbar. r=sspitzer. --- browser/components/places/content/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/components/places/content/utils.js b/browser/components/places/content/utils.js index c4e6bf524e8..f9c0d4b5cf9 100644 --- a/browser/components/places/content/utils.js +++ b/browser/components/places/content/utils.js @@ -694,7 +694,7 @@ var PlacesUtils = { break; case this.TYPE_X_MOZ_URL: case this.TYPE_UNICODE: - var title = type == this.TYPE_X_MOZ_URL ? data.title : data.uri; + var title = type == this.TYPE_X_MOZ_URL ? data.title : data.uri.spec; var createTxn = new PlacesCreateItemTransaction(data.uri, container, index, title); return createTxn; @@ -1379,4 +1379,5 @@ var PlacesUtils = { PlacesUtils.GENERIC_VIEW_DROP_TYPES = [PlacesUtils.TYPE_X_MOZ_PLACE_CONTAINER, PlacesUtils.TYPE_X_MOZ_PLACE_SEPARATOR, PlacesUtils.TYPE_X_MOZ_PLACE, - PlacesUtils.TYPE_X_MOZ_URL]; + PlacesUtils.TYPE_X_MOZ_URL, + PlacesUtils.TYPE_UNICODE];