summaryrefslogtreecommitdiffstats
path: root/dom/events/test/clipboard/test_async_clipboard.xhtml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /dom/events/test/clipboard/test_async_clipboard.xhtml
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/events/test/clipboard/test_async_clipboard.xhtml')
-rw-r--r--dom/events/test/clipboard/test_async_clipboard.xhtml10
1 files changed, 1 insertions, 9 deletions
diff --git a/dom/events/test/clipboard/test_async_clipboard.xhtml b/dom/events/test/clipboard/test_async_clipboard.xhtml
index ec54809077..8a882fd24d 100644
--- a/dom/events/test/clipboard/test_async_clipboard.xhtml
+++ b/dom/events/test/clipboard/test_async_clipboard.xhtml
@@ -74,15 +74,7 @@
});
const items = await navigator.clipboard.read();
-
- // Bug 1756955: at least on Ubuntu 20.04, clearing the clipboard leads to
- // one item with no types.
- if (!items.length ||
- (items.length == 1 && !items[0].types.length)) {
- ok(true, "read() read the right thing from empty clipboard");
- } else {
- ok(false, "read() read the wrong thing from empty clipboard");
- }
+ ok(!items.length, "read() read the right thing from empty clipboard");
}
async function testNoContentsReadText() {