зеркало из https://github.com/mozilla/pjs.git
Fix for using window.open specifying "_self" as the target. b=67288, sr=jst@netscape.com
This commit is contained in:
Родитель
fee79568ba
Коммит
b58b550459
|
@ -419,7 +419,9 @@ nsWindowWatcher::OpenWindowJS(nsIDOMWindow *aParent,
|
|||
for browser windows by name, as it does.)
|
||||
*/
|
||||
if (aParent) {
|
||||
if (name.EqualsIgnoreCase("_top")) {
|
||||
if (name.EqualsIgnoreCase("_self")) {
|
||||
GetWindowTreeItem(aParent, getter_AddRefs(newDocShellItem));
|
||||
} else if (name.EqualsIgnoreCase("_top")) {
|
||||
nsCOMPtr<nsIDocShellTreeItem> shelltree;
|
||||
GetWindowTreeItem(aParent, getter_AddRefs(shelltree));
|
||||
if (shelltree)
|
||||
|
|
Загрузка…
Ссылка в новой задаче