Changeset 204062 in webkit
- Timestamp:
- Aug 2, 2016 7:38:35 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r204058 r204062 1 2016-08-02 Nan Wang <n_wang@apple.com> 2 3 AX: Simulated touch events are not working on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=160395 5 <rdar://problem/27633597> 6 7 Reviewed by Chris Fleizach. 8 9 * accessibility/ios-simulator/press-fires-touch-events-expected.txt: Added. 10 * accessibility/ios-simulator/press-fires-touch-events.html: Added. 11 * platform/ios-simulator-wk2/TestExpectations: 12 * platform/ios-simulator/ios/accessibility/press-fires-touch-events-expected.txt: Removed. 13 * platform/ios-simulator/ios/accessibility/press-fires-touch-events.html: Removed. 14 1 15 2016-08-02 Saam Barati <sbarati@apple.com> 2 16 -
trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events.html
r204061 r204062 2 2 <html> 3 3 <head> 4 <script src="../../ ../../resources/js-test-pre.js"></script>4 <script src="../../resources/js-test-pre.js"></script> 5 5 <script> 6 6 var successfullyParsed = false; … … 41 41 </script> 42 42 43 <script src="../../ ../../resources/js-test-post.js"></script>43 <script src="../../resources/js-test-post.js"></script> 44 44 45 45 </body> -
trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations
r204055 r204062 1795 1795 fast/writing-mode/japanese-lr-selection.html [ Failure ] 1796 1796 fast/writing-mode/japanese-rl-selection.html [ Failure ] 1797 platform/ios-simulator/ios/accessibility/press-fires-touch-events.html [ Failure]1797 accessibility/ios-simulator/press-fires-touch-events.html [ Skip ] 1798 1798 1799 1799 fast/text/combining-character-sequence-vertical.html [ ImageOnlyFailure ] -
trunk/Source/WebCore/ChangeLog
r204061 r204062 1 2016-08-02 Nan Wang <n_wang@apple.com> 2 3 AX: Simulated touch events are not working on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=160395 5 <rdar://problem/27633597> 6 7 Reviewed by Chris Fleizach. 8 9 We should mark the simulated touch as a potential tap otherwise it won't 10 be handled on iOS. Also, we need to dispatch both touch start and touch end 11 to mimic the real touch events. Last, added a has event listeners check, 12 because iOS is dispatching mouse click events for elements without touch event 13 listeners. 14 15 Test: accessibility/ios-simulator/press-fires-touch-events.html 16 17 * accessibility/AccessibilityObject.cpp: 18 (WebCore::AccessibilityObject::press): 19 (WebCore::AccessibilityObject::dispatchTouchEvent): 20 * page/ios/EventHandlerIOS.mm: 21 (WebCore::EventHandler::dispatchSimulatedTouchEvent): 22 * platform/ios/PlatformEventFactoryIOS.mm: 23 (WebCore::PlatformTouchEventBuilder::PlatformTouchEventBuilder): 24 1 25 2016-08-02 Benjamin Poulain <bpoulain@apple.com> 2 26 -
trunk/Source/WebCore/accessibility/AccessibilityObject.cpp
r203955 r204062 923 923 UserGestureIndicator gestureIndicator(ProcessingUserGesture, document); 924 924 925 // FIXME: dispatchTouchEvent() is not dispatching the touch event correctly. 926 bool dispatchedTouchEvent = dispatchTouchEvent(); 925 bool dispatchedTouchEvent = false; 926 #if PLATFORM(IOS) 927 if (hasTouchEventListener()) 928 dispatchedTouchEvent = dispatchTouchEvent(); 929 #endif 927 930 if (!dispatchedTouchEvent) 928 931 pressElement->accessKeyAction(true); … … 939 942 return false; 940 943 941 frame->eventHandler().dispatchSimulatedTouchEvent(clickPoint());944 handled = frame->eventHandler().dispatchSimulatedTouchEvent(clickPoint()); 942 945 #endif 943 946 return handled; -
trunk/Source/WebCore/page/ios/EventHandlerIOS.mm
r201038 r204062 109 109 { 110 110 bool handled = handleTouchEvent(PlatformEventFactory::createPlatformSimulatedTouchEvent(PlatformEvent::TouchStart, location)); 111 if (handled) 112 handleTouchEvent(PlatformEventFactory::createPlatformSimulatedTouchEvent(PlatformEvent::TouchEnd, location)); 111 handled |= handleTouchEvent(PlatformEventFactory::createPlatformSimulatedTouchEvent(PlatformEvent::TouchEnd, location)); 113 112 return handled; 114 113 } -
trunk/Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm
r176904 r204062 273 273 m_position = location; 274 274 m_globalPosition = location; 275 m_isPotentialTap = true; 275 276 276 277 unsigned touchCount = 1; -
trunk/Tools/ChangeLog
r204060 r204062 1 2016-08-02 Nan Wang <n_wang@apple.com> 2 3 AX: Simulated touch events are not working on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=160395 5 <rdar://problem/27633597> 6 7 Reviewed by Chris Fleizach. 8 9 * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: 10 (WTR::AccessibilityUIElement::press): 11 (WTR::AccessibilityUIElement::setSelectedChild): 12 1 13 2016-08-02 Filip Pizlo <fpizlo@apple.com> 2 14 -
trunk/Tools/WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm
r203955 r204062 807 807 void AccessibilityUIElement::press() 808 808 { 809 [m_element _accessibilityActivate]; 809 810 } 810 811
Note: See TracChangeset
for help on using the changeset viewer.