gecko-dev/hal
Makoto Kato 3493d2727e Bug 1753574 - hal::LockOrientation can return error status. r=smaug,geckoview-reviewers,agi,calu
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
2022-03-02 03:48:14 +00:00
..
android Bug 1753574 - hal::LockOrientation can return error status. r=smaug,geckoview-reviewers,agi,calu 2022-03-02 03:48:14 +00:00
cocoa
fallback Bug 1753574 - hal::LockOrientation can return error status. r=smaug,geckoview-reviewers,agi,calu 2022-03-02 03:48:14 +00:00
linux
sandbox Bug 1753574 - hal::LockOrientation can return error status. r=smaug,geckoview-reviewers,agi,calu 2022-03-02 03:48:14 +00:00
windows Bug 1710473 - Remove hal::SetProcessPrioritySupported(). r=gsvelto,geckoview-reviewers,aklotz 2021-05-10 19:59:24 +00:00
Hal.cpp Bug 1753574 - hal::LockOrientation can return error status. r=smaug,geckoview-reviewers,agi,calu 2022-03-02 03:48:14 +00:00
Hal.h Bug 1753574 - hal::LockOrientation can return error status. r=smaug,geckoview-reviewers,agi,calu 2022-03-02 03:48:14 +00:00
HalBatteryInformation.h
HalIPCUtils.h Bug 1754813 - Make Hal::ScreenOrientation an enum class. r=gsvelto,m_kato,geckoview-reviewers 2022-02-14 07:51:06 +00:00
HalImpl.h
HalInternal.h
HalLog.h
HalNetworkInformation.h
HalSandbox.h
HalScreenConfiguration.h Bug 1754858 - Simplify screen orientation API implementation. r=smaug,m_kato,geckoview-reviewers 2022-02-15 20:22:54 +00:00
HalSensor.h Bug 1701789 - Restore UserProximityEvent r=smaug 2021-03-30 20:44:47 +00:00
HalTypes.h Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
HalWakeLock.cpp Bug 1747138 - Breakdown CPU and GPU time by process type, r=chutten,gsvelto 2022-02-03 20:37:21 +00:00
HalWakeLock.h
HalWakeLockInformation.h
HalWakeLockInternal.h
WindowIdentifier.cpp
WindowIdentifier.h
moz.build Bug 1754858 - Simplify screen orientation API implementation. r=smaug,m_kato,geckoview-reviewers 2022-02-15 20:22:54 +00:00