Index: content/test/data/paste_listener.html |
diff --git a/content/test/data/paste_listener.html b/content/test/data/paste_listener.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2c96faf32d938f12896c79f4e0e0dc5731d5274b |
--- /dev/null |
+++ b/content/test/data/paste_listener.html |
@@ -0,0 +1,15 @@ |
+<title>Waiting for paste</title> |
+<body> |
+<script> |
+document.body.contentEditable = true; |
+document.body.addEventListener('paste', (event) => { |
+ Array.prototype.forEach.call(event.clipboardData.items, (item) => { |
+ if (item.type != 'text/rtf') { |
+ return; |
+ } |
+ item.getAsString((s) => { |
+ document.title = s; |
+ }); |
+ }); |
+}); |
+</script> |