зеркало из https://github.com/mozilla/gecko-dev.git
In the implementation of FindItemWithName, make sure to pass the tree owner the docShell knows about and not another higher level requestor.
This commit is contained in:
Родитель
085b74f3ee
Коммит
32d9a7b5d0
|
@ -281,8 +281,10 @@ NS_IMETHODIMP nsWebBrowser::FindItemWithName(const PRUnichar *aName,
|
|||
nsISupports* aRequestor, nsIDocShellTreeItem **_retval)
|
||||
{
|
||||
NS_ENSURE_STATE(mDocShell);
|
||||
NS_ASSERTION(mDocShellTreeOwner, "This should always be set when in this situation");
|
||||
|
||||
return mDocShellAsItem->FindItemWithName(aName, aRequestor, _retval);
|
||||
return mDocShellAsItem->FindItemWithName(aName,
|
||||
NS_STATIC_CAST(nsIDocShellTreeOwner*, mDocShellTreeOwner), _retval);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsWebBrowser::GetTreeOwner(nsIDocShellTreeOwner** aTreeOwner)
|
||||
|
|
Загрузка…
Ссылка в новой задаче