Bug 116636

Summary: [Mac] accessibility/document-attributes.html fails
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, commit-queue, dmazzoni, enrica, jcraig, jdiggs, mario, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar, LayoutTestFailure
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
patch
none
patch none

Description Ryosuke Niwa 2013-05-22 14:37:05 PDT
accessibility/document-attributes.html has been failing probably ever since the test was added.
Comment 1 Radar WebKit Bug Importer 2014-02-07 11:31:56 PST
<rdar://problem/16014080>
Comment 2 Nan Wang 2015-08-25 10:42:18 PDT
Created attachment 259859 [details]
patch
Comment 3 chris fleizach 2015-08-25 10:57:13 PDT
Comment on attachment 259859 [details]
patch

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

> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:3061
> +        if (document)

this can be
if (Document *doc = m_object->document())
    return ...

> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:3069
> +            return document->encoding();

ditto
Comment 4 Nan Wang 2015-08-25 11:02:16 PDT
Created attachment 259862 [details]
patch
Comment 5 chris fleizach 2015-08-25 11:38:49 PDT
Comment on attachment 259862 [details]
patch

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

> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:3060
> +        if (Document *document = m_object->document())

* on wrong side

> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:3066
> +        if (Document *document = m_object->document())

* on wrong side
Comment 6 Nan Wang 2015-08-25 11:46:48 PDT
Created attachment 259865 [details]
patch
Comment 7 WebKit Commit Bot 2015-08-25 12:15:11 PDT
Comment on attachment 259865 [details]
patch

Clearing flags on attachment: 259865

Committed r188930: <http://trac.webkit.org/changeset/188930>
Comment 8 WebKit Commit Bot 2015-08-25 12:15:17 PDT
All reviewed patches have been landed.  Closing bug.