When target=_blank is blocked, don't block existing named targets in other

windows. Bug 174266, r=danm, sr=jst


git-svn-id: svn://10.0.0.236/trunk@159949 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-07-28 04:04:02 +00:00
parent 6f2fc34088
commit 334f961bd7

View File

@@ -5224,7 +5224,7 @@ nsDocShell::InternalLoad(nsIURI * aURI,
!name.EqualsLiteral("_main")) {
nsCOMPtr<nsIDocShellTreeItem> targetTreeItem;
FindItemWithName(name.get(),
NS_STATIC_CAST(nsIInterfaceRequestor *, this),
nsnull,
getter_AddRefs(targetTreeItem));
if (targetTreeItem)
targetDocShell = do_QueryInterface(targetTreeItem);