зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1750498 - Better support orientation.lock('portrait') and orientation.lock('landscape'). r=geckoview-reviewers,owlish
Although this test is included in `testing/web-platform/tests/screen-orientation/lock-basic.html`, it is still timed out until fixing bug 1750147. Differential Revision: https://phabricator.services.mozilla.com/D136118
This commit is contained in:
Родитель
9c43486404
Коммит
6881fd9c1b
|
@ -873,6 +873,10 @@ public final class GeckoRuntime implements Parcelable {
|
|||
return ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE;
|
||||
} else if (geckoOrientation == ScreenOrientation.DEFAULT.value) {
|
||||
return ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
|
||||
} else if (geckoOrientation == ScreenOrientation.PORTRAIT.value) {
|
||||
return ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT;
|
||||
} else if (geckoOrientation == ScreenOrientation.LANDSCAPE.value) {
|
||||
return ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE;
|
||||
} else if (geckoOrientation == ScreenOrientation.ANY.value) {
|
||||
return ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[lock-sandboxed-iframe.html]
|
||||
prefs: [dom.screenorientation.allow-lock:true]
|
||||
expected: [OK, ERROR] # Bug 1750673
|
||||
[Test without 'allow-orientation-lock' sandboxing directive]
|
||||
expected:
|
||||
if (os == "android"): PASS
|
||||
|
|
Загрузка…
Ссылка в новой задаче