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

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


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_7_BRANCH@159987 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-07-28 20:51:59 +00:00
parent 4ab5781bc5
commit 3360ebebfc

View File

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