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

git-svn-id: svn://10.0.0.236/trunk@11819 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
joki%netscape.com
1998-10-02 22:56:52 +00:00
parent 3750297062
commit 243c9f3a96
2 changed files with 10 additions and 2 deletions

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))