- From: snianu <notifications@github.com>
- Date: Fri, 15 Oct 2021 15:31:42 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 15 October 2021 22:31:54 UTC
@snianu commented on this pull request.
> +
+ <h4 typedef>ClipboardItemDataType</h4>
+ <p>
+ It is a {{DOMString}} or [=Blob=] type. This contains the payload corresponding to the MIME type while creating a [=ClipboardItem=] object.
+ </p>
+ <h4 typedef>ClipboardItemData</h4>
+ <p>
+ It is a [=Promise=] to the {{ClipboardItemDataType}}.
+ </p>
+
+ <h3 id="clipboard-interface">Clipboard Interface</h3>
+
+ <pre class="idl" data-highlight="webidl">
+ typedef sequence<ClipboardItem> ClipboardItems;
+
+ [SecureContext, Exposed=Window] interface Clipboard : EventTarget {
Here is the MDN article on [SecureContext](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts). I think this is just a first line of defense against malicious use of an API.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/158#discussion_r730156013
Received on Friday, 15 October 2021 22:31:54 UTC