Issue #2361 - Base implementation of Navigator.Clipboard

This hard-refuses any reads from clipboard with a promise rejection.
This commit is contained in:
Moonchild 2023-11-15 21:53:16 +01:00 committed by roytam1
commit 3478c01fc8
13 changed files with 327 additions and 11 deletions

View file

@ -40,6 +40,7 @@ class WakeLock;
class ArrayBufferOrArrayBufferViewOrBlobOrFormDataOrUSVStringOrURLSearchParams;
class ServiceWorkerContainer;
class DOMRequest;
class Clipboard;
} // namespace dom
} // namespace mozilla
@ -213,6 +214,8 @@ public:
ErrorResult& aRv);
already_AddRefed<ServiceWorkerContainer> ServiceWorker();
dom::Clipboard* Clipboard();
void GetLanguages(nsTArray<nsString>& aLanguages);
@ -277,6 +280,7 @@ private:
RefPtr<DesktopNotificationCenter> mNotification;
RefPtr<PowerManager> mPowerManager;
RefPtr<network::Connection> mConnection;
RefPtr<dom::Clipboard> mClipboard;
#ifdef MOZ_AUDIO_CHANNEL_MANAGER
RefPtr<system::AudioChannelManager> mAudioChannelManager;
#endif