Bug #19499 --> remove some obsolete code involving mailto

urls. we can handle mailto urls just fine now. this was giving us problems if you moused over or
clicked on a http/file url that had the word "mailto" in it.
r=vidur
This commit is contained in:
mscott%netscape.com 2000-02-16 03:28:40 +00:00
Родитель cca1fc922e
Коммит 4ada318a65
2 изменённых файлов: 0 добавлений и 18 удалений

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

@ -1504,15 +1504,6 @@ nsGenericElement::TriggerLink(nsIPresContext* aPresContext,
absURLSpec = aURLSpec;
}
// HACK HACK HACK. If the link clicked is a mailto: url just
// pass the aURLSpec. This is because, netlib doesn't recognize
// mailto: protocol. Note: This s'd go away after NECKO lands
PRInt32 offset = -1;
offset = aURLSpec.Find("mailto", PR_TRUE);
if (offset >= 0)
absURLSpec = aURLSpec;
// Now pass on absolute url to the click handler
if (aClick) {
nsresult proceed = NS_OK;

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

@ -1504,15 +1504,6 @@ nsGenericElement::TriggerLink(nsIPresContext* aPresContext,
absURLSpec = aURLSpec;
}
// HACK HACK HACK. If the link clicked is a mailto: url just
// pass the aURLSpec. This is because, netlib doesn't recognize
// mailto: protocol. Note: This s'd go away after NECKO lands
PRInt32 offset = -1;
offset = aURLSpec.Find("mailto", PR_TRUE);
if (offset >= 0)
absURLSpec = aURLSpec;
// Now pass on absolute url to the click handler
if (aClick) {
nsresult proceed = NS_OK;