- From: Edgar Chen <notifications@github.com>
- Date: Tue, 19 May 2026 04:09:57 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/248/review/4318338553@github.com>
@EdgarChen commented on this pull request.
> +
+ 1. If |isCustom| is true, then:
+
+ 1. Let |webCustomFormatMap| be the [=os specific custom map name=].
+
+ 1. Read |webCustomFormatMap| from the [=system clipboard=].
+
+ 1. Let |webCustomFormatMapString| be the JSON string deserialized from |webCustomFormatMap|.
+
+ 1. Let |osFormatName| be the value in |webCustomFormatMapString| whose key matches |mimeType| [=serialize a MIME type|serialized=].
+
+ 1. If |osFormatName| is not found, then [=queue a global task=] on the [=clipboard task source=], given |realm|'s [=realm/global object=], to [=reject=] |p| with a {{"NotFoundError"}} {{DOMException}} in |realm|, then abort these steps.
+
+ 1. Else, let |osFormatName| be the result of running [=os specific well-known format=] given |mimeType|.
+
+ 1. Let |rawData| be the result of reading bytes for |osFormatName| from the [=system clipboard=].
Not sure how does the "the result of reading bytes .." work and I assume the result could be a failure or byte sequence. Is the data from `system clipboard representation` in https://w3c.github.io/clipboard-apis/#model or maybe something else?
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/248#pullrequestreview-4318338553
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/clipboard-apis/pull/248/review/4318338553@github.com>
Received on Tuesday, 19 May 2026 11:10:01 UTC