diff options
author | Gae24 <96017547+Gae24@users.noreply.github.com> | 2025-04-14 15:49:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-14 13:49:43 +0000 |
commit | 2bab5d8d521b6e51e3d8be46a3723e355609361c (patch) | |
tree | 9773ab43d0e092ce34916b1014571622de993673 /components/script/task_source.rs | |
parent | c6dc7c83a8d79a180847695aa15f65373868c73e (diff) | |
download | servo-2bab5d8d521b6e51e3d8be46a3723e355609361c.tar.gz servo-2bab5d8d521b6e51e3d8be46a3723e355609361c.zip |
async clipboard: implement `writeText` (#36498)
Implement enough of the Clipboard API to have a working `writeText`.
Testing: Unfortunately many clipboard-apis tests require testdriver, so
only idlharness ones will pass now.
---------
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Diffstat (limited to 'components/script/task_source.rs')
-rw-r--r-- | components/script/task_source.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/task_source.rs b/components/script/task_source.rs index 4bb6a5c110c..2aaa15609f1 100644 --- a/components/script/task_source.rs +++ b/components/script/task_source.rs @@ -23,6 +23,7 @@ use crate::task_manager::TaskManager; #[derive(Clone, Copy, Debug, Eq, Hash, JSTraceable, MallocSizeOf, PartialEq, VariantArray)] pub(crate) enum TaskSourceName { Canvas, + Clipboard, DOMManipulation, FileReading, /// <https://drafts.csswg.org/css-font-loading/#task-source> @@ -48,6 +49,7 @@ impl From<TaskSourceName> for ScriptThreadEventCategory { fn from(value: TaskSourceName) -> Self { match value { TaskSourceName::Canvas => ScriptThreadEventCategory::ScriptEvent, + TaskSourceName::Clipboard => ScriptThreadEventCategory::ScriptEvent, TaskSourceName::DOMManipulation => ScriptThreadEventCategory::ScriptEvent, TaskSourceName::FileReading => ScriptThreadEventCategory::FileRead, TaskSourceName::FontLoading => ScriptThreadEventCategory::FontLoading, |