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

r=danm, sr=jst


git-svn-id: svn://10.0.0.236/trunk@168576 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2005-01-31 20:46:24 +00:00
parent 0f9dc12ab7
commit ac25fe7675
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->