Don't look for new webshell during link clicks if no target specified

This commit is contained in:
joki@netscape.com
1998-10-02 22:56:52 +00:00
parent 7d63a261a4
commit 6231a14219
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -1455,9 +1455,13 @@ nsWebShell::OnLinkClick(nsIFrame* aFrame,
nsIWebShell*
nsWebShell::GetTarget(const PRUnichar* aName)
{
nsString name(aName);
nsAutoString name(aName);
nsIWebShell* target = nsnull;
if (0 == name.Length()) {
return this;
}
if (name.EqualsIgnoreCase("_blank")) {
nsIWebShell *shell;
if (NS_OK == NewWebShell(shell))