mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Don't use the values returned by NS_MakeAbsURL to pass it to link handler, when
a mailto: url is clicked. This is because netlib doesn't understand mailto: urls yet. This will be fixed the right way after NECKO lands
This commit is contained in:
parent
32eddfe0b4
commit
59223b8a6c
@ -1239,6 +1239,15 @@ 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");
|
||||
if (offset >= 0)
|
||||
absURLSpec = aURLSpec;
|
||||
|
||||
// Now pass on absolute url to the click handler
|
||||
if (aClick) {
|
||||
handler->OnLinkClick(mContent, aVerb, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
|
||||
|
@ -1239,6 +1239,15 @@ 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");
|
||||
if (offset >= 0)
|
||||
absURLSpec = aURLSpec;
|
||||
|
||||
// Now pass on absolute url to the click handler
|
||||
if (aClick) {
|
||||
handler->OnLinkClick(mContent, aVerb, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
|
||||
|
Loading…
Reference in New Issue
Block a user