зеркало из https://github.com/mozilla/gecko-dev.git
Enable show=new for simple XLink. Works at least when the link is clicked, does not seem to work with actuate=onLoad. Bug 15086.
This commit is contained in:
Родитель
32debe05de
Коммит
2b7788fe3b
|
@ -1001,11 +1001,11 @@ nsWebShell::HandleLinkClickEvent(nsIContent *aContent,
|
|||
const PRUnichar* aTargetSpec,
|
||||
nsIInputStream* aPostDataStream)
|
||||
{
|
||||
nsAutoString target(aTargetSpec);
|
||||
nsCAutoString target; target.AssignWithConversion(aTargetSpec);
|
||||
|
||||
switch(aVerb) {
|
||||
case eLinkVerb_New:
|
||||
target.AssignWithConversion("_blank");
|
||||
target = "_blank";
|
||||
// Fall into replace case
|
||||
case eLinkVerb_Undefined:
|
||||
// Fall through, this seems like the most reasonable action
|
||||
|
@ -1017,9 +1017,7 @@ nsWebShell::HandleLinkClickEvent(nsIContent *aContent,
|
|||
nsCOMPtr<nsIURI> uri;
|
||||
NS_NewURI(getter_AddRefs(uri), aURLSpec, nsnull);
|
||||
|
||||
nsCAutoString tempTargetSpecCString;
|
||||
tempTargetSpecCString.AssignWithConversion(aTargetSpec);
|
||||
InternalLoad(uri, mCurrentURI, tempTargetSpecCString, aPostDataStream, loadLink);
|
||||
InternalLoad(uri, mCurrentURI, target, aPostDataStream, loadLink);
|
||||
}
|
||||
break;
|
||||
case eLinkVerb_Embed:
|
||||
|
|
|
@ -1001,11 +1001,11 @@ nsWebShell::HandleLinkClickEvent(nsIContent *aContent,
|
|||
const PRUnichar* aTargetSpec,
|
||||
nsIInputStream* aPostDataStream)
|
||||
{
|
||||
nsAutoString target(aTargetSpec);
|
||||
nsCAutoString target; target.AssignWithConversion(aTargetSpec);
|
||||
|
||||
switch(aVerb) {
|
||||
case eLinkVerb_New:
|
||||
target.AssignWithConversion("_blank");
|
||||
target = "_blank";
|
||||
// Fall into replace case
|
||||
case eLinkVerb_Undefined:
|
||||
// Fall through, this seems like the most reasonable action
|
||||
|
@ -1017,9 +1017,7 @@ nsWebShell::HandleLinkClickEvent(nsIContent *aContent,
|
|||
nsCOMPtr<nsIURI> uri;
|
||||
NS_NewURI(getter_AddRefs(uri), aURLSpec, nsnull);
|
||||
|
||||
nsCAutoString tempTargetSpecCString;
|
||||
tempTargetSpecCString.AssignWithConversion(aTargetSpec);
|
||||
InternalLoad(uri, mCurrentURI, tempTargetSpecCString, aPostDataStream, loadLink);
|
||||
InternalLoad(uri, mCurrentURI, target, aPostDataStream, loadLink);
|
||||
}
|
||||
break;
|
||||
case eLinkVerb_Embed:
|
||||
|
|
Загрузка…
Ссылка в новой задаче