Commit 134cb181 authored by cfleizach@apple.com's avatar cfleizach@apple.com

AX: Crash in accessibilityRoot when Document goes away

https://bugs.webkit.org/show_bug.cgi?id=125113

Reviewed by Tim Horton.

The AXObjectCache can sometimes be null if the render tree has been detached from the document.

* WebView/WebFrame.mm:
(-[WebFrame accessibilityRoot]):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e018cb5e
2013-12-02 Chris Fleizach <cfleizach@apple.com>
AX: Crash in accessibilityRoot when Document goes away
https://bugs.webkit.org/show_bug.cgi?id=125113
Reviewed by Tim Horton.
The AXObjectCache can sometimes be null if the render tree has been detached from the document.
* WebView/WebFrame.mm:
(-[WebFrame accessibilityRoot]):
2013-11-28 Antti Koivisto <antti@apple.com>
Remove feature: CSS variables
......
......@@ -1209,10 +1209,14 @@ static inline WebDataSource *dataSource(DocumentLoader* loader)
AXObjectCache::setEnhancedUserInterfaceAccessibility([[NSApp accessibilityAttributeValue:NSAccessibilityEnhancedUserInterfaceAttribute] boolValue]);
}
if (!_private->coreFrame || !_private->coreFrame->document())
if (!_private->coreFrame)
return nil;
Document* document = _private->coreFrame->document();
if (!document || !document->axObjectCache())
return nil;
AccessibilityObject* rootObject = _private->coreFrame->document()->axObjectCache()->rootObjectForFrame(_private->coreFrame);
AccessibilityObject* rootObject = document->axObjectCache()->rootObjectForFrame(_private->coreFrame);
if (!rootObject)
return nil;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment