Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.ScreenOrientation.lock - not actually supported by Android WebView #21132

Open
tornewuff opened this issue Oct 31, 2023 · 0 comments
Open
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@tornewuff
Copy link

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

api.ScreenOrientation.lock (and unlock) are claimed to be supported by Android WebView since 38, but are not actually supported.

(also WebView 38 doesn't actually exist - the Chromium-based WebView only exists for 30, 33, 40, and 42 onward)

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

What did you expect to see?

No support for lock/unlock on WebView

(possibly with a note that WebView 40 exposes the API but it does not actually work; it is no longer exposed in WebView 42+)

Did you test this? If so, how?

devtools console on webview 118; screen.orientation only has angle, onchange, type properties.

(also I reviewed the chromium change that correctly hid the API in webview 42) 😄

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://source.chromium.org/chromium/chromium/src/+/main:android_webview/lib/aw_main_delegate.cc;l=117;drc=05700a2e26edf2610679cf578774daef53a9ea2c
https://bugs.chromium.org/p/chromium/issues/detail?id=466080
https://bugs.chromium.org/p/chromium/issues/detail?id=1497871

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/lock

MDN metadata

MDN page report details
  • Query: api.ScreenOrientation.lock
  • Report started: 2023-10-31T18:41:05.471Z
@queengooborg queengooborg added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

3 participants
@tornewuff @queengooborg and others