Bug 113817

Summary: AX: Bounding paths should be made available through accessibility
Product: WebKit Reporter: chris fleizach <cfleizach>
Component: AccessibilityAssignee: chris fleizach <cfleizach>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, buildbot, ddkilzer, dmazzoni, jdiggs, rakuco, rniwa, thorton, webkit-ews, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
webkit-ews: commit-queue-
patch
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion
none
patch ddkilzer: review+

chris fleizach
Reported 2013-04-02 12:17:08 PDT
See http://examples.simplyaccessible.com/svg-maps/ The <g> elements in the SVG example are not in the AX hierarchy and the <title> field is not being exposed
Attachments
patch (39.27 KB, patch)
2013-04-05 17:43 PDT, chris fleizach
webkit-ews: commit-queue-
patch (39.78 KB, patch)
2013-04-05 17:57 PDT, chris fleizach
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (629.63 KB, application/zip)
2013-04-05 20:04 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion (692.55 KB, application/zip)
2013-04-05 22:07 PDT, Build Bot
no flags
patch (38.52 KB, patch)
2013-04-06 00:51 PDT, chris fleizach
ddkilzer: review+
chris fleizach
Comment 1 2013-04-02 12:17:23 PDT
chris fleizach
Comment 2 2013-04-05 17:43:51 PDT
Early Warning System Bot
Comment 3 2013-04-05 17:54:14 PDT
Early Warning System Bot
Comment 4 2013-04-05 17:55:50 PDT
chris fleizach
Comment 5 2013-04-05 17:57:04 PDT
Build Bot
Comment 6 2013-04-05 20:04:14 PDT
Comment on attachment 196710 [details] patch Attachment 196710 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-commit-queue.appspot.com/results/17528276 New failing tests: platform/mac/accessibility/element-paths.html
Build Bot
Comment 7 2013-04-05 20:04:16 PDT
Created attachment 196714 [details] Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.2
Build Bot
Comment 8 2013-04-05 22:07:32 PDT
Comment on attachment 196710 [details] patch Attachment 196710 [details] did not pass mac-ews (mac): Output: http://webkit-commit-queue.appspot.com/results/17529333 New failing tests: platform/mac/accessibility/element-paths.html
Build Bot
Comment 9 2013-04-05 22:07:35 PDT
Created attachment 196717 [details] Archive of layout-test-results from webkit-ews-01 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-01 Port: mac-mountainlion Platform: Mac OS X 10.8.2
chris fleizach
Comment 10 2013-04-06 00:51:58 PDT
David Kilzer (:ddkilzer)
Comment 11 2013-04-09 10:01:25 PDT
Comment on attachment 196718 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=196718&action=review r=me, but please investigate why there is a "Move to point" after "Close" on the mac/accessibility/element-paths-expected.txt test results, and future-proof the #if in AccessibilityUIElement.cpp > Tools/DumpRenderTree/AccessibilityUIElement.cpp:1094 > +#if !PLATFORM(MAC) > +JSStringRef AccessibilityUIElement::pathDescription() const { return 0; } > +#endif For future-proofing, this should be: #if !PLATFORM(IOS) && !PLATFORM(MAC) > LayoutTests/platform/mac/accessibility/element-paths-expected.txt:14 > +PASS svg.isAttributeSupported('AXPath') is true > +SVG path description > +Start Path > + Move to point > + Line to > + Line to > + Close > + Move to point Would it be better to print out the point and line data here? Or will that change from Mac-to-Mac? Why is there a "Move to point" after "Close" here and on the two tests below? > LayoutTests/platform/iphone-simulator/accessibility/element-paths-expected.txt:12 > +SVG path description > +Start Path > + Move to point > + Line to > + Line to > + Close Would it be best to have specific point and line information here?
chris fleizach
Comment 12 2013-04-09 10:56:04 PDT
(In reply to comment #11) > (From update of attachment 196718 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=196718&action=review > > r=me, but please investigate why there is a "Move to point" after "Close" on the mac/accessibility/element-paths-expected.txt test results, and future-proof the #if in AccessibilityUIElement.cpp > > > Tools/DumpRenderTree/AccessibilityUIElement.cpp:1094 > > +#if !PLATFORM(MAC) > > +JSStringRef AccessibilityUIElement::pathDescription() const { return 0; } > > +#endif > > For future-proofing, this should be: > > #if !PLATFORM(IOS) && !PLATFORM(MAC) > > > LayoutTests/platform/mac/accessibility/element-paths-expected.txt:14 > > +PASS svg.isAttributeSupported('AXPath') is true > > +SVG path description > > +Start Path > > + Move to point > > + Line to > > + Line to > > + Close > > + Move to point > > Would it be better to print out the point and line data here? Or will that change from Mac-to-Mac? > I had that in my first go through but the EWS buildbot failed with the values I had uploaded, so it seems like it might not work out > Why is there a "Move to point" after "Close" here and on the two tests below? > I don't know. i'll look into that > > LayoutTests/platform/iphone-simulator/accessibility/element-paths-expected.txt:12 > > +SVG path description > > +Start Path > > + Move to point > > + Line to > > + Line to > > + Close > > Would it be best to have specific point and line information here? It's possible we can do this for the simulator. I had the same results every time I ran it, but i'm not sure if we'd get different answers on different machines
chris fleizach
Comment 13 2013-04-09 11:36:14 PDT
(In reply to comment #12) > (In reply to comment #11) > > (From update of attachment 196718 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=196718&action=review > > > > r=me, but please investigate why there is a "Move to point" after "Close" on the mac/accessibility/element-paths-expected.txt test results, and future-proof the #if in AccessibilityUIElement.cpp > > > > > Tools/DumpRenderTree/AccessibilityUIElement.cpp:1094 > > > +#if !PLATFORM(MAC) > > > +JSStringRef AccessibilityUIElement::pathDescription() const { return 0; } > > > +#endif > > > > For future-proofing, this should be: > > > > #if !PLATFORM(IOS) && !PLATFORM(MAC) > > > > > LayoutTests/platform/mac/accessibility/element-paths-expected.txt:14 > > > +PASS svg.isAttributeSupported('AXPath') is true > > > +SVG path description > > > +Start Path > > > + Move to point > > > + Line to > > > + Line to > > > + Close > > > + Move to point > > > > Would it be better to print out the point and line data here? Or will that change from Mac-to-Mac? > > > > I had that in my first go through but the EWS buildbot failed with the values I had uploaded, so it seems like it might not work out > > > Why is there a "Move to point" after "Close" here and on the two tests below? > > I looked into it. It looks like NSBezierPath appends another move to point (all the time) when you do a close subpath > > I don't know. i'll look into that > > > > LayoutTests/platform/iphone-simulator/accessibility/element-paths-expected.txt:12 > > > +SVG path description > > > +Start Path > > > + Move to point > > > + Line to > > > + Line to > > > + Close > > > > Would it be best to have specific point and line information here? > > It's possible we can do this for the simulator. I had the same results every time I ran it, but i'm not sure if we'd get different answers on different machines
chris fleizach
Comment 14 2013-04-09 11:54:24 PDT
Tim Horton
Comment 15 2013-04-09 12:16:01 PDT
Comment on attachment 196718 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=196718&action=review > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1503 > + IntPoint intPoint = (IntPoint)point; This isn't the right way to cast to IntPoint, please use the constructor (and, you broke the build :D)
chris fleizach
Comment 16 2013-04-09 12:19:45 PDT
(In reply to comment #15) > (From update of attachment 196718 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=196718&action=review > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1503 > > + IntPoint intPoint = (IntPoint)point; > > This isn't the right way to cast to IntPoint, please use the constructor Will fix. > (and, you broke the build :D) Which platform is broken? When i look at http://build.webkit.org/waterfall I don't see any failures
chris fleizach
Comment 17 2013-04-09 12:53:45 PDT
(In reply to comment #16) > (In reply to comment #15) > > (From update of attachment 196718 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=196718&action=review > > > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1503 > > > + IntPoint intPoint = (IntPoint)point; > > > > This isn't the right way to cast to IntPoint, please use the constructor > > Will fix. Addressed this feedback in http://trac.webkit.org/changeset/148039 > > > (and, you broke the build :D) > > Which platform is broken? When i look at http://build.webkit.org/waterfall > I don't see any failures
Tim Horton
Comment 18 2013-04-09 12:57:25 PDT
(In reply to comment #17) > > > > > (and, you broke the build :D) > > > > Which platform is broken? When i look at http://build.webkit.org/waterfall > > I don't see any failures Sent you an email.
chris fleizach
Comment 19 2013-04-09 13:17:41 PDT
(In reply to comment #18) > (In reply to comment #17) > > > > > > > (and, you broke the build :D) > > > > > > Which platform is broken? When i look at http://build.webkit.org/waterfall > > > I don't see any failures > > Sent you an email. Addressed in http://trac.webkit.org/changeset/148042
Raphael Kubo da Costa (:rakuco)
Comment 20 2013-04-10 02:18:20 PDT
You also broke WebKitTestRunner for all non-Mac platforms :( Fixed in <http://trac.webkit.org/changeset/148086>.
Note You need to log in before you can comment on or make changes to this bug.