Bug 196812 - Ensure iOS layout traits are used for media controls in modern compatibility mode
Summary: Ensure iOS layout traits are used for media controls in modern compatibility ...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
Keywords: InRadar
Depends on:
Reported: 2019-04-11 01:51 PDT by Antoine Quint
Modified: 2019-04-15 05:51 PDT (History)
4 users (show)

See Also:

Patch (5.14 KB, patch)
2019-04-11 01:54 PDT, Antoine Quint
dino: review+
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2 (9.50 MB, application/zip)
2019-04-11 03:52 PDT, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2019-04-11 01:51:10 PDT
Currently we are using the macOS ones but we should use the iOS ones.
Comment 1 Antoine Quint 2019-04-11 01:51:23 PDT
Comment 2 Antoine Quint 2019-04-11 01:54:02 PDT
Created attachment 367211 [details]
Comment 3 EWS Watchlist 2019-04-11 03:52:57 PDT
Comment on attachment 367211 [details]

Attachment 367211 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/11839482

New failing tests:
Comment 4 EWS Watchlist 2019-04-11 03:52:58 PDT
Created attachment 367212 [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.13.6
Comment 5 Antoine Quint 2019-04-15 00:06:52 PDT
I don't understand the failures as reported by EWS, and installing a configuration similar to the bot that reported the failure doesn't reproduce. I'm going to land this as-is and take a look at the other bots.
Comment 6 Antoine Quint 2019-04-15 00:11:37 PDT
Committed r244253: <https://trac.webkit.org/changeset/244253>
Comment 7 Antoine Quint 2019-04-15 04:49:37 PDT
Committed r244259: <https://trac.webkit.org/changeset/244259>
Comment 8 Antoine Quint 2019-04-15 04:53:45 PDT
I landed a speculative fix for the bot failures. I think the reason was that we used to have a platform-based check and this patch switched to one based on feature-discovery. Prior to this patch, we'd use the macOS layout traits if navigator.platform === "MacIntel" and the iOS traits otherwise. With this patch, we use the iOS layout traits if touch events are supported and macOS otherwise. I think this led the open-source iOS bots to using the macOS layout traits since touch events aren't support, or at least not advertised using `createTouch in document`.

So my speculative fix is to use iOS if either we support touches or navigator.platform !== "MacIntel". Hopefully this will address the bot issues.
Comment 9 Antoine Quint 2019-04-15 05:51:06 PDT
The speculative fix looks solid, bots look happy.