Bug 206653

Summary: [GTK] Several WPT clipboard-apis tests are failing
Product: WebKit Reporter: Diego Pino <dpino>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 211979    
Bug Blocks:    

Description Diego Pino 2020-01-23 05:16:23 PST
* 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."