зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c28c8d47df
Коммит
6a700a2306
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче