mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
async clipboard: implement readText
(#36689)
part of #36084 Testing: Only idl harness tests will pass for now --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
348eede37b
commit
5b913441d4
5 changed files with 151 additions and 13 deletions
|
@ -88,7 +88,7 @@ DOMInterfaces = {
|
|||
},
|
||||
|
||||
'Clipboard': {
|
||||
'canGc': ['WriteText']
|
||||
'canGc': ['ReadText', 'WriteText']
|
||||
},
|
||||
|
||||
'ClipboardItem': {
|
||||
|
|
|
@ -9,7 +9,7 @@ typedef sequence<ClipboardItem> ClipboardItems;
|
|||
[SecureContext, Exposed=Window, Pref="dom_async_clipboard_enabled"]
|
||||
interface Clipboard : EventTarget {
|
||||
// Promise<ClipboardItems> read();
|
||||
// Promise<DOMString> readText();
|
||||
Promise<DOMString> readText();
|
||||
// Promise<undefined> write(ClipboardItems data);
|
||||
Promise<undefined> writeText(DOMString data);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue