<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>206653</bug_id>
          
          <creation_ts>2020-01-23 05:16:23 -0800</creation_ts>
          <short_desc>[WPE] Test &apos;imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https.html&apos; is failing</short_desc>
          <delta_ts>2026-02-13 02:47:54 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>211979</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>karlcow</cc>
    
    <cc>klee</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1610061</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-01-23 05:16:23 -0800</bug_when>
    <thetext>* 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 &apos;data.items.length&apos;)
+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 &quot;NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.&quot;
+FAIL navigator.clipboard.readText() succeeds promise_test: Unhandled rejection with value: object &quot;NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157254</commentid>
    <comment_count>1</comment_count>
    <who name="">klee</who>
    <bug_when>2025-11-07 07:42:26 -0800</bug_when>
    <thetext>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&amp;platform=WPE&amp;suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fclipboard-apis%2Fasync-navigator-clipboard-basics.https.html

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2181211</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2026-02-13 02:45:01 -0800</bug_when>
    <thetext>Test &apos;imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https.html&apos; is still failing using the wpe-legacy-api:

https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fclipboard-apis%2Fasync-navigator-clipboard-basics.https.html&amp;platform=GTK&amp;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 &quot;function() { throw e; }&quot; threw object &quot;NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.&quot; (&quot;NotAllowedError&quot;) expected instance of function &quot;function TypeError() {
     [native code]
 }&quot; (&quot;TypeError&quot;)
-PASS navigator.clipboard.read() succeeds
-PASS navigator.clipboard.readText() succeeds
+FAIL navigator.clipboard.read() succeeds promise_test: Unhandled rejection with value: object &quot;NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.&quot;
+FAIL navigator.clipboard.readText() succeeds promise_test: Unhandled rejection with value: object &quot;NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.&quot;
 FAIL navigator.clipboard.write(Promise&lt;Blob&gt;) succeeds promise_test: Unhandled rejection with value: object &quot;ReferenceError: Can&apos;t find variable: getPermissions&quot;
 FAIL navigator.clipboard.write(Promise&lt;Blob&gt;s) succeeds promise_test: Unhandled rejection with value: object &quot;ReferenceError: Can&apos;t find variable: getPermissions&quot;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2181213</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2026-02-13 02:47:54 -0800</bug_when>
    <thetext>I updated the topic to reflect there&apos;s only test failing on WPE only</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>