<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[204062] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/204062">204062</a></dd>
<dt>Author</dt> <dd>n_wang@apple.com</dd>
<dt>Date</dt> <dd>2016-08-02 19:38:35 -0700 (Tue, 02 Aug 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>AX: Simulated touch events are not working on iOS
https://bugs.webkit.org/show_bug.cgi?id=160395
&lt;rdar://problem/27633597&gt;

Reviewed by Chris Fleizach.

Source/WebCore:

We should mark the simulated touch as a potential tap otherwise it won't
be handled on iOS. Also, we need to dispatch both touch start and touch end
to mimic the real touch events. Last, added a has event listeners check,
because iOS is dispatching mouse click events for elements without touch event
listeners.

Test: accessibility/ios-simulator/press-fires-touch-events.html

* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::press):
(WebCore::AccessibilityObject::dispatchTouchEvent):
* page/ios/EventHandlerIOS.mm:
(WebCore::EventHandler::dispatchSimulatedTouchEvent):
* platform/ios/PlatformEventFactoryIOS.mm:
(WebCore::PlatformTouchEventBuilder::PlatformTouchEventBuilder):

Tools:

* WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
(WTR::AccessibilityUIElement::press):
(WTR::AccessibilityUIElement::setSelectedChild):

LayoutTests:

* accessibility/ios-simulator/press-fires-touch-events-expected.txt: Added.
* accessibility/ios-simulator/press-fires-touch-events.html: Added.
* platform/ios-simulator-wk2/TestExpectations:
* platform/ios-simulator/ios/accessibility/press-fires-touch-events-expected.txt: Removed.
* platform/ios-simulator/ios/accessibility/press-fires-touch-events.html: Removed.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2TestExpectations">trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityObject.cpp</a></li>
<li><a href="#trunkSourceWebCorepageiosEventHandlerIOSmm">trunk/Source/WebCore/page/ios/EventHandlerIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformiosPlatformEventFactoryIOSmm">trunk/Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundleiosAccessibilityUIElementIOSmm">trunk/Tools/WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsaccessibilityiossimulatorpressfirestoucheventsexpectedtxt">trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events-expected.txt</a></li>
<li><a href="#trunkLayoutTestsaccessibilityiossimulatorpressfirestoucheventshtml">trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events.html</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsplatformiossimulatoriosaccessibilitypressfirestoucheventsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoriosaccessibilitypressfirestoucheventshtml">trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/LayoutTests/ChangeLog        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-08-02  Nan Wang  &lt;n_wang@apple.com&gt;
+
+        AX: Simulated touch events are not working on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=160395
+        &lt;rdar://problem/27633597&gt;
+
+        Reviewed by Chris Fleizach.
+
+        * accessibility/ios-simulator/press-fires-touch-events-expected.txt: Added.
+        * accessibility/ios-simulator/press-fires-touch-events.html: Added.
+        * platform/ios-simulator-wk2/TestExpectations:
+        * platform/ios-simulator/ios/accessibility/press-fires-touch-events-expected.txt: Removed.
+        * platform/ios-simulator/ios/accessibility/press-fires-touch-events.html: Removed.
+
</ins><span class="cx"> 2016-08-02  Saam Barati  &lt;sbarati@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         update a class extending null w.r.t the ES7 spec
</span></span></pre></div>
<a id="trunkLayoutTestsaccessibilityiossimulatorpressfirestoucheventsexpectedtxtfromrev204061trunkLayoutTestsplatformiossimulatoriosaccessibilitypressfirestoucheventsexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events-expected.txt (from rev 204061, trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events-expected.txt) (0 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events-expected.txt                                (rev 0)
+++ trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events-expected.txt        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+button
+Ensure that if an element on handles touch events, the simulated accessibility press will still activate those elements.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Received touch start [object TouchEvent]
+Received touch ended [object TouchEvent]
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsaccessibilityiossimulatorpressfirestoucheventshtmlfromrev204061trunkLayoutTestsplatformiossimulatoriosaccessibilitypressfirestoucheventshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events.html (from rev 204061, trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events.html) (0 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events.html                                (rev 0)
+++ trunk/LayoutTests/accessibility/ios-simulator/press-fires-touch-events.html        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+
+function touchEnd(event) {
+    debug(&quot;Received touch ended &quot; + event);
+    event.stopPropagation(); 
+    event.preventDefault();
+}
+
+function touchStart(event) {
+    debug(&quot;Received touch start &quot; + event);
+    event.stopPropagation(); 
+    event.preventDefault();
+}
+
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;div role=&quot;button&quot; id=&quot;button&quot; ontouchstart=&quot;touchStart(event);&quot; ontouchend=&quot;touchEnd(event);&quot;&gt;button&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;Ensure that if an element on handles touch events, the simulated accessibility press will still activate those elements.&quot;);
+
+    if (window.accessibilityController) {
+        var button = accessibilityController.accessibleElementById(&quot;button&quot;);
+        button.press();
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoriosaccessibilitypressfirestoucheventsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events-expected.txt (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events-expected.txt        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events-expected.txt        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -1,12 +0,0 @@
</span><del>-button
-Ensure that if an element on handles touch events, the simulated accessibility press will still activate those elements.
-
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-Received touch start [object TouchEvent]
-Received touch ended [object TouchEvent]
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoriosaccessibilitypressfirestoucheventshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events.html (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events.html        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/LayoutTests/platform/ios-simulator/ios/accessibility/press-fires-touch-events.html        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -1,47 +0,0 @@
</span><del>-&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;script src=&quot;../../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
-&lt;script&gt;
-var successfullyParsed = false;
-if (window.testRunner)
-   testRunner.dumpAsText();
-
-function touchEnd(event) {
-    debug(&quot;Received touch ended &quot; + event);
-    event.stopPropagation(); 
-    event.preventDefault();
-}
-
-function touchStart(event) {
-    debug(&quot;Received touch start &quot; + event);
-    event.stopPropagation(); 
-    event.preventDefault();
-}
-
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-
-&lt;div role=&quot;button&quot; id=&quot;button&quot; ontouchstart=&quot;touchStart(event);&quot; ontouchend=&quot;touchEnd(event);&quot;&gt;button&lt;/div&gt;
-
-&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
-&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
-
-&lt;script&gt;
-
-    description(&quot;Ensure that if an element on handles touch events, the simulated accessibility press will still activate those elements.&quot;);
-
-    if (window.accessibilityController) {
-        var button = accessibilityController.accessibleElementById(&quot;button&quot;);
-        button.press();
-    }
-
-    successfullyParsed = true;
-&lt;/script&gt;
-
-&lt;script src=&quot;../../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
-
-&lt;/body&gt;
-&lt;/html&gt;
-
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -1794,7 +1794,7 @@
</span><span class="cx"> fast/replaced/border-radius-clip.html [ Failure ]
</span><span class="cx"> fast/writing-mode/japanese-lr-selection.html [ Failure ]
</span><span class="cx"> fast/writing-mode/japanese-rl-selection.html [ Failure ]
</span><del>-platform/ios-simulator/ios/accessibility/press-fires-touch-events.html [ Failure ]
</del><ins>+accessibility/ios-simulator/press-fires-touch-events.html [ Skip ]
</ins><span class="cx"> 
</span><span class="cx"> fast/text/combining-character-sequence-vertical.html [ ImageOnlyFailure ]
</span><span class="cx"> fast/text/vertical-quotation-marks.html [ ImageOnlyFailure ]
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/Source/WebCore/ChangeLog        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -1,3 +1,27 @@
</span><ins>+2016-08-02  Nan Wang  &lt;n_wang@apple.com&gt;
+
+        AX: Simulated touch events are not working on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=160395
+        &lt;rdar://problem/27633597&gt;
+
+        Reviewed by Chris Fleizach.
+
+        We should mark the simulated touch as a potential tap otherwise it won't
+        be handled on iOS. Also, we need to dispatch both touch start and touch end
+        to mimic the real touch events. Last, added a has event listeners check,
+        because iOS is dispatching mouse click events for elements without touch event
+        listeners.
+
+        Test: accessibility/ios-simulator/press-fires-touch-events.html
+
+        * accessibility/AccessibilityObject.cpp:
+        (WebCore::AccessibilityObject::press):
+        (WebCore::AccessibilityObject::dispatchTouchEvent):
+        * page/ios/EventHandlerIOS.mm:
+        (WebCore::EventHandler::dispatchSimulatedTouchEvent):
+        * platform/ios/PlatformEventFactoryIOS.mm:
+        (WebCore::PlatformTouchEventBuilder::PlatformTouchEventBuilder):
+
</ins><span class="cx"> 2016-08-02  Benjamin Poulain  &lt;bpoulain@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Clean up some useless AtomicString atoms
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.cpp (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -922,8 +922,11 @@
</span><span class="cx">     
</span><span class="cx">     UserGestureIndicator gestureIndicator(ProcessingUserGesture, document);
</span><span class="cx">     
</span><del>-    // FIXME: dispatchTouchEvent() is not dispatching the touch event correctly.
-    bool dispatchedTouchEvent = dispatchTouchEvent();
</del><ins>+    bool dispatchedTouchEvent = false;
+#if PLATFORM(IOS)
+    if (hasTouchEventListener())
+        dispatchedTouchEvent = dispatchTouchEvent();
+#endif
</ins><span class="cx">     if (!dispatchedTouchEvent)
</span><span class="cx">         pressElement-&gt;accessKeyAction(true);
</span><span class="cx">     
</span><span class="lines">@@ -938,7 +941,7 @@
</span><span class="cx">     if (!frame)
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    frame-&gt;eventHandler().dispatchSimulatedTouchEvent(clickPoint());
</del><ins>+    handled = frame-&gt;eventHandler().dispatchSimulatedTouchEvent(clickPoint());
</ins><span class="cx"> #endif
</span><span class="cx">     return handled;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorepageiosEventHandlerIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ios/EventHandlerIOS.mm (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ios/EventHandlerIOS.mm        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/Source/WebCore/page/ios/EventHandlerIOS.mm        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -108,8 +108,7 @@
</span><span class="cx"> bool EventHandler::dispatchSimulatedTouchEvent(IntPoint location)
</span><span class="cx"> {
</span><span class="cx">     bool handled = handleTouchEvent(PlatformEventFactory::createPlatformSimulatedTouchEvent(PlatformEvent::TouchStart, location));
</span><del>-    if (handled)
-        handleTouchEvent(PlatformEventFactory::createPlatformSimulatedTouchEvent(PlatformEvent::TouchEnd, location));
</del><ins>+    handled |= handleTouchEvent(PlatformEventFactory::createPlatformSimulatedTouchEvent(PlatformEvent::TouchEnd, location));
</ins><span class="cx">     return handled;
</span><span class="cx"> }
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosPlatformEventFactoryIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -272,6 +272,7 @@
</span><span class="cx">         m_isGesture = 0;
</span><span class="cx">         m_position = location;
</span><span class="cx">         m_globalPosition = location;
</span><ins>+        m_isPotentialTap = true;
</ins><span class="cx">         
</span><span class="cx">         unsigned touchCount = 1;
</span><span class="cx">         m_touchPoints.reserveInitialCapacity(touchCount);
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/Tools/ChangeLog        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-08-02  Nan Wang  &lt;n_wang@apple.com&gt;
+
+        AX: Simulated touch events are not working on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=160395
+        &lt;rdar://problem/27633597&gt;
+
+        Reviewed by Chris Fleizach.
+
+        * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
+        (WTR::AccessibilityUIElement::press):
+        (WTR::AccessibilityUIElement::setSelectedChild):
+
</ins><span class="cx"> 2016-08-02  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         run-javascriptcore-tests should accept multiple --extra-tests
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundleiosAccessibilityUIElementIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm (204061 => 204062)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm        2016-08-03 02:20:40 UTC (rev 204061)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm        2016-08-03 02:38:35 UTC (rev 204062)
</span><span class="lines">@@ -806,6 +806,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AccessibilityUIElement::press()
</span><span class="cx"> {
</span><ins>+    [m_element _accessibilityActivate];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void AccessibilityUIElement::setSelectedChild(AccessibilityUIElement* element) const
</span></span></pre>
</div>
</div>

</body>
</html>