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:
heikki%citec.fi 2000-05-17 05:43:14 +00:00
Родитель 32debe05de
Коммит 2b7788fe3b
2 изменённых файлов: 6 добавлений и 10 удалений

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

@ -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: