-
Notifications
You must be signed in to change notification settings - Fork 29
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
Prevent hidden documents from locking orientation #232
Conversation
I guess this doesn't apply to |
I was thinking it shouldn't be possible because to hide the page/app it once locked, a user would need to exit fullscreen. But yeah, the assumption doesn't hold when there are multiple virtual desktops. It may be safer just to prevent it in both cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably makes sense to split out the safety checks into a shared algorithm at some point.
Prepared test web-platform-tests/wpt#36734 @saschanaz or @makotokato, @michaelwasserman, could you please file bugs in your respective engine repos if you support the change? |
Sent a patch for WebKit WebKit/WebKit#6283 |
a3d2d3c
to
5df037d
Compare
This change has been merged in WebKit. |
BTW, web-platform-tests/wpt#36734 test ( Does it forget adding |
And, why don't we care hidden state in "8.3 Applying an orientation lock" section like fully active if it is in parallel case? |
I would like to enable this API in Nightly for testing. Supported in GeckoView and Windows tablet mode. Other platforms are no affect by this preference. WPT [*1] runs on non-supported platform, so a lot of tests are failure. (GeckoView passes a lot of tests [*2].) Also, there is an issue of hidden document [*3], it isn't fixed by spec side yet. *1 https://wpt.fyi/results/screen-orientation *2 https://searchfox.org/mozilla-central/source/testing/web-platform/meta/screen-orientation *3 w3c/screen-orientation#232 Differential Revision: https://phabricator.services.mozilla.com/D168349
I would like to enable this API in Nightly for testing. Supported in GeckoView and Windows tablet mode. Other platforms are no affect by this preference. WPT [*1] runs on non-supported platform, so a lot of tests are failure. (GeckoView passes a lot of tests [*2].) Also, there is an issue of hidden document [*3], it isn't fixed by spec side yet. *1 https://wpt.fyi/results/screen-orientation *2 https://searchfox.org/mozilla-central/source/testing/web-platform/meta/screen-orientation *3 w3c/screen-orientation#232 Differential Revision: https://phabricator.services.mozilla.com/D168349
@makotokato, apologies, just coming back to this. Thanks for pointing out the issues with the tests and in section "8.3 Applying an orientation lock". I think that was just an oversight. Having a look now. |
@makotokato, about the tests, I've gone over them again and you are right... they were making incorrect assumptions. For example, on macOs at least, it appears one cannot minimize a window once it's in fullscreen. One needs to first exit fullscreen and then the window can be minimized. Anyway, I'll delete those two tests.
Yeah, good catch. I think instead what needs to happen there is that if the preconditions are not longer met (which is remaining visible and in fullscreen). |
af3859c
to
86b8dc5
Compare
@makotokato, I've filed #243 to follow up on your comment above. I'll draft up a separate pull request for that. About the tests, I sent web-platform-tests/wpt#38511 |
Closes #221
The following tasks have been completed:
Implementation commitment:
Preview | Diff