mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 679626 crash in nsIDOMWindowInternal::GetDocShell with signature pointing to nsASDOMWindowEnumerator::GetNext - try to avoid windows with no docshells. r=bz
This commit is contained in:
parent
c1ed6de18a
commit
a12f3dbf3f
@ -222,11 +222,12 @@ NS_IMETHODIMP nsASDOMWindowEnumerator::GetNext(nsISupports **retval)
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
*retval = nullptr;
|
||||
if (mCurrentPosition) {
|
||||
while (mCurrentPosition) {
|
||||
nsCOMPtr<nsIDOMWindow> domWindow;
|
||||
GetDOMWindow(mCurrentPosition->mWindow, domWindow);
|
||||
CallQueryInterface(domWindow, retval);
|
||||
mCurrentPosition = FindNext();
|
||||
if (domWindow)
|
||||
return CallQueryInterface(domWindow, retval);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user