mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 760038 - crash in NotificationController::WillRefresh, r=tbsaunde
This commit is contained in:
parent
c97a446579
commit
a26b9e61bb
@ -11,12 +11,6 @@
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "NotificationController.h"
|
||||
|
||||
inline DocAccessible*
|
||||
DocAccessible::ParentDocument() const
|
||||
{
|
||||
return GetAccService()->GetDocAccessible(mDocument->GetParentDocument());
|
||||
}
|
||||
|
||||
inline void
|
||||
DocAccessible::BindChildDocument(DocAccessible* aDocument)
|
||||
{
|
||||
|
@ -2043,8 +2043,12 @@ DocAccessible::IsLoadEventTarget() const
|
||||
|
||||
// Return true if it's not a root document (either tab document or
|
||||
// frame/iframe document) and its parent document is not in loading state.
|
||||
if (parentTreeItem)
|
||||
return ParentDocument()->HasLoadState(eCompletelyLoaded);
|
||||
// Note: we can get notifications while document is loading (and thus
|
||||
// while there's no parent document yet).
|
||||
if (parentTreeItem) {
|
||||
DocAccessible* parentDoc = ParentDocument();
|
||||
return parentDoc && parentDoc->HasLoadState(eCompletelyLoaded);
|
||||
}
|
||||
|
||||
// It's content (not chrome) root document.
|
||||
PRInt32 contentType;
|
||||
|
@ -152,7 +152,8 @@ public:
|
||||
/**
|
||||
* Return the parent document.
|
||||
*/
|
||||
DocAccessible* ParentDocument() const;
|
||||
DocAccessible* ParentDocument() const
|
||||
{ return mParent ? mParent->Document() : nsnull; }
|
||||
|
||||
/**
|
||||
* Return the child document count.
|
||||
|
Loading…
Reference in New Issue
Block a user