Bug 206653
| Summary: | [WPE] Test 'imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https.html' is failing | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Diego Pino <dpino> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | karlcow, klee |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 211979 | ||
| Bug Blocks: | |||
Diego Pino
* imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https.html [ Failure ] Failing since r251279.
* imported/w3c/web-platform-tests/clipboard-apis/async-write-text-read-dttext-manual.https.html [ Failure ] Failing since r252471-r252595.
* imported/w3c/web-platform-tests/clipboard-apis/async-write-text-read-text-manual.https.html [ Failure ] Failing since r252471-r252626.
The last two tests fail because of a timeout reported by the harness framework.
--- /imported/w3c/web-platform-tests/clipboard-apis/async-write-text-read-dttext-manual.https-expected.txt
+++ /imported/w3c/web-platform-tests/clipboard-apis/async-write-text-read-dttext-manual.https-actual.txt
@@ -1,4 +1,6 @@
Note: This is a manual test because it writes/reads to the shared system clipboard and thus cannot be run async with other tests that might interact with the clipboard.
-FAIL Verify write and read clipboard (DOMString) undefined is not an object (evaluating 'data.items.length')
+Harness Error (TIMEOUT), message = null
+TIMEOUT Verify write and read clipboard (DOMString) Test timed out
--- /imported/w3c/web-platform-tests/clipboard-apis/async-write-text-read-text-manual.https-expected.txt
+++ /imported/w3c/web-platform-tests/clipboard-apis/async-write-text-read-text-manual.https-actual.txt
@@ -1,4 +1,6 @@
Note: This is a manual test because it writes/reads to the shared system clipboard and thus cannot be run async with other tests that might interact with the clipboard.
-PASS Verify write and read clipboard (DOMString)
+Harness Error (TIMEOUT), message = null
+TIMEOUT Verify write and read clipboard (DOMString) Test timed out
The other failure is:
--- /imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https-expected.txt
+++ /imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https-actual.txt
@@ -6,6 +6,6 @@
PASS navigator.clipboard.write(DOMString) fails (expect DataTransfer)
PASS navigator.clipboard.writeText(DOMString) succeeds
PASS navigator.clipboard.writeText() fails (expect DOMString)
-FAIL navigator.clipboard.read() succeeds assert_true: expected true got false
-PASS navigator.clipboard.readText() succeeds
+FAIL navigator.clipboard.read() succeeds promise_test: Unhandled rejection with value: object "NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."
+FAIL navigator.clipboard.readText() succeeds promise_test: Unhandled rejection with value: object "NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
klee
The test below has been passing since October 22
It seems the issue is no longer reproducible, so this bug can likely be closed.
* imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https.html
Please refer to the following link on results.webkit.org for details:
https://results.webkit.org/?limit=50000&platform=WPE&suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fclipboard-apis%2Fasync-navigator-clipboard-basics.https.html
Thanks.
Diego Pino
Test 'imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https.html' is still failing using the wpe-legacy-api:
https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fclipboard-apis%2Fasync-navigator-clipboard-basics.https.html&platform=GTK&platform=WPE
The test error can be reproduced by running the following command:
```
Tools/Scripts/run-webkit-tests --no-show-results --no-new-test-results --no-sample-on-timeout --results-directory layout-test-results --debug-rwt-logging --no-retry-failures --release --wpe --wpe-legacy-api imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https.html
```
The diff error is:
```diff
--- /sdk/webkit/layout-test-results/imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https-expected.txt
+++ /sdk/webkit/layout-test-results/imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https-actual.txt
@@ -13,8 +13,8 @@
FAIL navigator.clipboard.write(image/png DOMString) fails promise_rejects_js: function "function() { throw e; }" threw object "NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission." ("NotAllowedError") expected instance of function "function TypeError() {
[native code]
}" ("TypeError")
-PASS navigator.clipboard.read() succeeds
-PASS navigator.clipboard.readText() succeeds
+FAIL navigator.clipboard.read() succeeds promise_test: Unhandled rejection with value: object "NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."
+FAIL navigator.clipboard.readText() succeeds promise_test: Unhandled rejection with value: object "NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."
FAIL navigator.clipboard.write(Promise<Blob>) succeeds promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: getPermissions"
FAIL navigator.clipboard.write(Promise<Blob>s) succeeds promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: getPermissions"
```
Diego Pino
I updated the topic to reflect there's only test failing on WPE only