Because tablets and other devices do not always honor requests to
lock the screen orientation, but still sometimes indicate success,
remove support for anything but phone form factors.
As part of this, this CL also turns off our default behavior to
lock orientation to match the video content's aspect ratio when
entering fullscreen for devices on which we don't support
orientation lock. This prevents a round-trip to find out that it
doesn't work.
This behavior change also affects the ScreenOrientation::lock web
API. This API is allowed to return failure to a lock request for
any reason, however. Since tablets currently lie about their
success sometimes (e.g., do nothing and/or letterbox instead of
changing the orientation yet still return success), this change
should make the result more trustworthy. Tablet use-cases of
this API are somewhat rare anyway.
This new behavior is hidden behind `RestrictOrientationLockToPhones`,
which is off by default.
Bug: 384736274
Change-Id: I6eeb054471859ced222ce33865292bd8fca0a213
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6249668
Reviewed-by: Bo Liu <boliu@chromium.org>
Auto-Submit: Frank Liberato <liberato@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1419534}