mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
3493d2727e
From https://w3c.github.io/screen-orientation/#apply-an-orientation-lock > 7.2. Apply an orientation lock > > The steps to apply an orientation lock to a Document using orientation are as > follows: > > 1. If the user agent does not support locking the screen orientation, return > a promise rejected with a "NotSupportedError" DOMException and abort > these steps. So if orientation controller delegate isn't set, we should throw `NotSupportedError`. But, actually, we throws `AbortError`, so this isn't correct. To return any DOM error from platform implementation of `screen.orientation.lock`, I would like to change return value to `GenericPromise`'s. Differential Revision: https://phabricator.services.mozilla.com/D137970 |
||
---|---|---|
.. | ||
android | ||
cocoa | ||
fallback | ||
linux | ||
sandbox | ||
windows | ||
Hal.cpp | ||
Hal.h | ||
HalBatteryInformation.h | ||
HalImpl.h | ||
HalInternal.h | ||
HalIPCUtils.h | ||
HalLog.h | ||
HalNetworkInformation.h | ||
HalSandbox.h | ||
HalScreenConfiguration.h | ||
HalSensor.h | ||
HalTypes.h | ||
HalWakeLock.cpp | ||
HalWakeLock.h | ||
HalWakeLockInformation.h | ||
HalWakeLockInternal.h | ||
moz.build | ||
WindowIdentifier.cpp | ||
WindowIdentifier.h |