mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 639835 - EVENT_DOCUMENT_LOAD_COMPLETE may be not fired at startup, r=roc
This commit is contained in:
parent
da89e08cb3
commit
3f61f30bc6
@ -1097,6 +1097,12 @@ nsWindow::Show(PRBool aState)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
if (aState && sAccessibilityEnabled) {
|
||||
CreateRootAccessible();
|
||||
}
|
||||
#endif
|
||||
|
||||
NativeShow(aState);
|
||||
|
||||
return NS_OK;
|
||||
@ -4247,10 +4253,6 @@ nsWindow::Create(nsIWidget *aParent,
|
||||
|
||||
}
|
||||
}
|
||||
if (sAccessibilityEnabled) {
|
||||
LOG(("nsWindow:: Create Toplevel Accessibility\n"));
|
||||
CreateRootAccessible();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_DFB
|
||||
@ -6328,6 +6330,7 @@ void
|
||||
nsWindow::CreateRootAccessible()
|
||||
{
|
||||
if (mIsTopLevel && !mRootAccessible) {
|
||||
LOG(("nsWindow:: Create Toplevel Accessibility\n"));
|
||||
nsAccessible *acc = DispatchAccessibleEvent();
|
||||
|
||||
if (acc) {
|
||||
|
Loading…
Reference in New Issue
Block a user