зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1318356 - Remove the special casing for apps locking screen orientation; r=baku
This commit is contained in:
Родитель
7ca863c4ee
Коммит
fa484fb4be
|
@ -478,12 +478,6 @@ ScreenOrientation::GetLockOrientationPermission(bool aCheckSandbox) const
|
||||||
return LOCK_DENIED;
|
return LOCK_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apps can always lock the screen orientation.
|
|
||||||
if (doc->NodePrincipal()->GetAppStatus() >=
|
|
||||||
nsIPrincipal::APP_STATUS_INSTALLED) {
|
|
||||||
return LOCK_ALLOWED;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Preferences::GetBool("dom.screenorientation.testing.non_fullscreen_lock_allow",
|
if (Preferences::GetBool("dom.screenorientation.testing.non_fullscreen_lock_allow",
|
||||||
false)) {
|
false)) {
|
||||||
return LOCK_ALLOWED;
|
return LOCK_ALLOWED;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче