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 2002-06-06 23:56:56 +00:00
Родитель 4328ad16e2
Коммит d7e4f3d8eb
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);