Bug 178473 - Key events should not update Document.lastHandledUserGestureTimestamp unless key event is handled
Summary: Key events should not update Document.lastHandledUserGestureTimestamp unless ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-10-18 10:42 PDT by Eric Carlson
Modified: 2017-11-20 22:36 PST (History)
6 users (show)

See Also:


Attachments
Proposed patch. (4.47 KB, patch)
2017-10-18 11:00 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2 (12.93 MB, application/zip)
2017-10-18 12:20 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2017-10-18 10:42:41 PDT
Extend the changes made in r223307 to not update Document.lastHandledUserGestureTimestamp unless the key event is handled by the page.
Comment 1 Eric Carlson 2017-10-18 10:43:17 PDT
<rdar://problem/34869935>
Comment 2 Eric Carlson 2017-10-18 11:00:17 PDT
Created attachment 324136 [details]
Proposed patch.
Comment 3 Build Bot 2017-10-18 12:20:46 PDT
Comment on attachment 324136 [details]
Proposed patch.

Attachment 324136 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/4905433

New failing tests:
webrtc/video-replace-muted-track.html
Comment 4 Build Bot 2017-10-18 12:20:48 PDT
Created attachment 324148 [details]
Archive of layout-test-results from ews123 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.6
Comment 5 Eric Carlson 2017-10-18 12:46:13 PDT
(In reply to Build Bot from comment #4)
> Created attachment 324148 [details]
> Archive of layout-test-results from ews123 for ios-simulator-wk2
> 
> The attached test failures were seen while running run-webkit-tests on the
> ios-sim-ews.
> Bot: ews123  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.6

This seems unrelated. The test that failed is webrtc/video-replace-muted-track.html, which is flakey on the simulator (see bug 173608).
Comment 6 Brent Fulgham 2017-10-18 13:19:40 PDT
Comment on attachment 324136 [details]
Proposed patch.

Looks great! r=me.
Comment 7 WebKit Commit Bot 2017-10-18 13:26:42 PDT
Comment on attachment 324136 [details]
Proposed patch.

Clearing flags on attachment: 324136

Committed r223626: <https://trac.webkit.org/changeset/223626>
Comment 8 WebKit Commit Bot 2017-10-18 13:26:44 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2017-10-18 13:28:12 PDT
<rdar://problem/35059083>
Comment 10 Darin Adler 2017-11-20 22:36:30 PST
Comment on attachment 324136 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=324136&action=review

> Source/WebCore/ChangeLog:13
> +        (WebCore::EventHandler::keyEvent): Restore the current Document's "lastHandledUserGestureTimestamp"
> +        if the key event was not handled.

Why not just wait to set it until afterward?