Bug 91763

Summary: WebKit should pass <title> element value as the default description for web views
Product: WebKit Reporter: chris fleizach <cfleizach>
Component: AccessibilityAssignee: chris fleizach <cfleizach>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch andersca: review+

Description chris fleizach 2012-07-19 10:55:37 PDT
WebKit should pass <title> element value as the default AXTitle for web views

* STEPS TO REPRODUCE
1. Load any web page.
2. View the AXWebArea in AX Inspector.

* RESULTS
AXTitle is empty, but there is a web standard default title for web pages: the <title> element.
Comment 1 chris fleizach 2012-07-19 10:55:44 PDT
rdar://11232502
Comment 2 chris fleizach 2012-07-19 11:00:41 PDT
Created attachment 153309 [details]
patch
Comment 3 Anders Carlsson 2012-07-19 11:59:21 PDT
Comment on attachment 153309 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=153309&action=review

> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1435
> +    Element* documentElement = document->documentElement();
> +    if (documentElement) {

You can just move the variable declaration inside of the if check here.
Comment 4 chris fleizach 2012-07-19 15:56:13 PDT
http://trac.webkit.org/changeset/123157