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:
Makoto Kato 2022-01-18 10:36:25 +00:00
Родитель 9c43486404
Коммит 6881fd9c1b
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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