зеркало из https://github.com/mozilla/gecko-dev.git
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 |
||
---|---|---|
.. | ||
Accessors.h | ||
Conversions.cpp | ||
Conversions.h | ||
GeckoBundleUtils.h | ||
GeckoResultUtils.h | ||
Natives.h | ||
Refs.h | ||
TypeAdapter.h | ||
Types.h | ||
Utils.cpp | ||
Utils.h | ||
moz.build |