Bug #17468 --> if you pass a window target of _new, we weren't creating a new window. We do now.

r=travis
This commit is contained in:
mscott%netscape.com 2000-02-16 07:10:42 +00:00
parent c564b74577
commit 1388ba58b5

View File

@ -693,7 +693,7 @@ NS_IMETHODIMP nsURILoader::DispatchContent(const char * aContentType,
nsCOMPtr<nsIURIContentListener> listenerToUse = aContentListener;
// find a content handler that can and will handle the content
if (!aWindowTarget || nsCRT::strcasecmp(aWindowTarget, "_blank"))
if (!aWindowTarget || (nsCRT::strcasecmp(aWindowTarget, "_blank") && nsCRT::strcasecmp(aWindowTarget, "_new") ))
{
PRBool foundContentHandler = PR_FALSE;
if (listenerToUse)