gecko-dev/widget/android/jni
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
..
Accessors.h
Conversions.cpp Bug 1753574 - hal::LockOrientation can return error status. r=smaug,geckoview-reviewers,agi,calu 2022-03-02 03:48:14 +00:00
Conversions.h
GeckoBundleUtils.h
GeckoResultUtils.h Bug 1753919 - Allow non-copy C++ object for GeckoResult paramenter. r=geckoview-reviewers,bholley,agi 2022-02-09 06:59:52 +00:00
Natives.h Bug 1739367 - Replaces mozilla::Tuple with std::tuple in widget/ r=emilio,geckoview-reviewers,owlish 2021-11-10 12:57:43 +00:00
Refs.h Bug 1731517 - Add fallible version of primitive type array allocation. r=geckoview-reviewers,agi 2021-09-22 09:47:57 +00:00
TypeAdapter.h
Types.h
Utils.cpp Bug 1731517 - Add fallible version of primitive type array allocation. r=geckoview-reviewers,agi 2021-09-22 09:47:57 +00:00
Utils.h Bug 1731517 - Add fallible version of primitive type array allocation. r=geckoview-reviewers,agi 2021-09-22 09:47:57 +00:00
moz.build