Bug 409808: Dragging favicon to desktop fails to save properly url with some non-english languages, patch by Dão Gottwald <dao@mozilla.com>, r=me, a=beltzner

This commit is contained in:
gavin@gavinsharp.com 2008-05-26 14:18:09 -07:00
parent 3be9e5fa1f
commit c60b05a7e6

View File

@ -2549,13 +2549,8 @@ function FillInHTMLTooltip(tipElement)
var proxyIconDNDObserver = {
onDragStart: function (aEvent, aXferData, aDragAction)
{
var value = gURLBar.value;
// XXX - do we want to allow the user to set a blank page to their homepage?
// if so then we want to modify this a little to set about:blank as
// the homepage in the event of an empty urlbar.
if (!value) return;
var urlString = value + "\n" + window.content.document.title;
var value = content.location.href;
var urlString = value + "\n" + content.document.title;
var htmlString = "<a href=\"" + value + "\">" + value + "</a>";
aXferData.data = new TransferData();