Changeset 206190 in webkit


Ignore:
Timestamp:
Sep 20, 2016 5:27:38 PM (8 years ago)
Author:
n_wang@apple.com
Message:

AX: AppleVisUser: VO can't navigate web dialogs iOS10
https://bugs.webkit.org/show_bug.cgi?id=162322

Reviewed by Chris Fleizach.

Source/WebCore:

When using VoiceOver to navigate a web dialog's children, we were setting focus
onto the focusable parent in accessibilityElementDidBecomeFocused. When the focusable
parent is the dialog, it will cause the VO cursor jumping back and forward. Fixed it
by not setting focus on web dialogs in such case.

Test: accessibility/ios-simulator/dialog-did-become-focused.html

  • accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:

(-[WebAccessibilityObjectWrapper accessibilityElementDidBecomeFocused]):

LayoutTests:

  • accessibility/ios-simulator/dialog-did-become-focused-expected.txt: Added.
  • accessibility/ios-simulator/dialog-did-become-focused.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r206188 r206190  
     12016-09-20  Nan Wang  <n_wang@apple.com>
     2
     3        AX: AppleVisUser: VO can't navigate web dialogs iOS10
     4        https://bugs.webkit.org/show_bug.cgi?id=162322
     5
     6        Reviewed by Chris Fleizach.
     7
     8        * accessibility/ios-simulator/dialog-did-become-focused-expected.txt: Added.
     9        * accessibility/ios-simulator/dialog-did-become-focused.html: Added.
     10
    1112016-09-20  Zalan Bujtas  <zalan@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r206189 r206190  
     12016-09-20  Nan Wang  <n_wang@apple.com>
     2
     3        AX: AppleVisUser: VO can't navigate web dialogs iOS10
     4        https://bugs.webkit.org/show_bug.cgi?id=162322
     5
     6        Reviewed by Chris Fleizach.
     7
     8        When using VoiceOver to navigate a web dialog's children, we were setting focus
     9        onto the focusable parent in accessibilityElementDidBecomeFocused. When the focusable
     10        parent is the dialog, it will cause the VO cursor jumping back and forward. Fixed it
     11        by not setting focus on web dialogs in such case.
     12
     13        Test: accessibility/ios-simulator/dialog-did-become-focused.html
     14
     15        * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
     16        (-[WebAccessibilityObjectWrapper accessibilityElementDidBecomeFocused]):
     17
    1182016-09-20  Keith Rollin  <krollin@apple.com>
    219
  • trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm

    r206170 r206190  
    18921892            if ([self detailParentForObject:object])
    18931893                break;
     1894           
     1895            // webkit.org/b/162322 When a dialog is focusable, allowing focusing onto the dialog node will cause VO cursor jumping
     1896            // back and forward while navigating its children.
     1897            if ([object->wrapper() accessibilityIsDialog])
     1898                break;
     1899           
    18941900            object->setFocused(true);
    18951901            break;
Note: See TracChangeset for help on using the changeset viewer.