now _blank windows without a parent will actually open in a new window. wow. bugs like that shouldn't still exist. bug 98785 r=hyatt,rpotts

This commit is contained in:
danm%netscape.com 2001-09-07 23:24:34 +00:00
Родитель c28c8d47df
Коммит 6a700a2306
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -1224,9 +1224,17 @@ nsWindowWatcher::FindItemWithName(
{
PRBool more;
nsresult rv;
nsAutoString name(aName);
*aFoundItem = 0;
/* special cases */
if(name.Length() == 0)
return NS_OK;
if(name.EqualsIgnoreCase("_blank") || name.EqualsIgnoreCase("_new"))
return NS_OK;
// _content will be handled by individual windows, below
nsCOMPtr<nsISimpleEnumerator> windows;
GetWindowEnumerator(getter_AddRefs(windows));
if (!windows)