зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
cca1fc922e
Коммит
4ada318a65
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче