https://bugs.webkit.org/show_bug.cgi?id=174592
Reviewed by Simon Fraser.
Make sure the tap/click event is fully processed before finishing the test by using
the promise returned by UIHelper.activateAt().
* fast/workers/worker-user-gesture.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219572
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2017-07-17 Chris Dumez <cdumez@apple.com>
+
+ fast/workers/worker-user-gesture.html crashes on iOS
+ https://bugs.webkit.org/show_bug.cgi?id=174592
+
+ Reviewed by Simon Fraser.
+
+ Make sure the tap/click event is fully processed before finishing the test by using
+ the promise returned by UIHelper.activateAt().
+
+ * fast/workers/worker-user-gesture.html:
+
2017-07-17 Simon Fraser <simon.fraser@apple.com>
clientX/clientY on TouchEvent.touches are wrong
let inputElement = document.getElementById("testButton");
let centerX = inputElement.offsetLeft + inputElement.offsetWidth / 2;
let centerY = inputElement.offsetTop + inputElement.offsetHeight / 2;
- UIHelper.activateAt(centerX, centerY);
- if (++gestureCount == 10) {
- finishJSTest();
- return;
- }
- setTimeout(doUserGesture, 0);
+ UIHelper.activateAt(centerX, centerY).then(function() {
+ if (++gestureCount == 10) {
+ finishJSTest();
+ return;
+ }
+ setTimeout(doUserGesture, 0);
+ });
}
setTimeout(doUserGesture, 0);