GeckoDriver.setScreenOrientation should use Screen Orientation API instead of deprecated mozLockOrientation
Categories
(Remote Protocol :: Marionette, task, P3)
Tracking
(firefox110 fixed)
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lang=js])
Attachments
(1 file)
Assignee | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Do you have a link to the screen orientation API? Also do you want to mentor this bug? Note that we usually do not use good-first-bug
in this project due to it's complexity. Maybe we can have it as a normal mentored bug?
Assignee | ||
Comment 2•3 years ago
|
||
Spec: https://www.w3.org/TR/screen-orientation/. And GeckoDriver.prototype.getScreenOrientation
uses old deprecated API too.
we usually do not use good-first-bug in this project
OK, I remove good-first-bug
Comment 3•3 years ago
|
||
Thanks. So when distilling this information the following changes need to be done:
-
Update
WebDriver:getScreenOrientation
to no longer usescreen.mozOrientation
butscreen.orientation
. The value to be returned should then bescreen.orientation.type
. -
Update
WebDriver:setScreenOrientation
to usescreen.orientation.lock()
to lock the screen to a specific orientation. This call returns a Promise that we would have to await for.
To note here is that the specification mentions that some pre-conditions might have to be fulfilled first, like switching into fullscreen. If we have to do that, then it would have to be added before the call to lock()
.
More details in how to get started can be found at https://firefox-source-docs.mozilla.org/testing/marionette/index.html
Updated•2 years ago
|
Comment 4•2 years ago
|
||
is anyone working on this . if not can I work?
Comment 5•2 years ago
|
||
Hi Sanket. It's great to see your interest! So far we don't have anyone working on it. As such you can get started. See my last comment for details in how to get started with Marionette and what needs to be done. If you have questions don't hesitate to ask. Thanks!
Assignee | ||
Comment 6•2 years ago
|
||
mozLockOrientation
is deprecated and it always returns false
.
We should use standard API (it is still turned off as default).
Updated•2 years ago
|
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/ea5fa5e28a56 GeckoDriver.setScreenOrientation should use Screen Orientation API. r=webdriver-reviewers,whimboo
Comment 8•2 years ago
|
||
bugherder |
Updated•1 year ago
|
Description
•