Bug 148597. Can't drag a bookmark from personal toolbar to a tab. Patch by Pierre Chanial <pierrechanial@netscape.net> r=timeless, sr=blake, a=asa

This commit is contained in:
stephend%netscape.com 2006-09-14 06:04:13 +00:00
Родитель 76dc6d81ed
Коммит 1dd5c4ec68
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -253,7 +253,7 @@ var personalToolbarDNDObserver = {
//PCH: cleanup needed here, url is already calculated in isBookmark()
var db = document.getElementById("innermostBox").database;
var url = RDFUtils.getTarget(db, uri, NC_RDF("ID"));
var url = RDFUtils.getTarget(db, uri, NC_RDF("URL"));
if (url)
url = url.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;
else
@ -264,7 +264,7 @@ var personalToolbarDNDObserver = {
else
name = "";
var urlString = url + "\n" + name;
var htmlString = "<A HREF='" + uri + "'>" + name + "</A>";
var htmlString = "<A HREF='" + url + "'>" + name + "</A>";
aXferData.data = new TransferData();
aXferData.data.addDataForFlavour("moz/rdfitem", uri);
aXferData.data.addDataForFlavour("text/x-moz-url", urlString);