Undo the checkin for bug 135811 and refix it better. Fixes bug 279495.

r=danm, sr=jst
This commit is contained in:
bzbarsky@mit.edu
2005-01-31 20:46:24 +00:00
parent c97b624cbf
commit 83c8f75cca
3 changed files with 28 additions and 13 deletions

View File

@@ -2089,7 +2089,7 @@ nsDocShell::FindItemWithName(const PRUnichar * aName,
// This may fail, but comparing against null serves the same purpose
nsCOMPtr<nsIDocShellTreeOwner>
reqAsTreeOwner(do_GetInterface(aRequestor));
reqAsTreeOwner(do_QueryInterface(aRequestor));
if (mTreeOwner && mTreeOwner != reqAsTreeOwner) {
return mTreeOwner->