<?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>215462</bug_id>
          
          <creation_ts>2020-08-13 13:07:44 -0700</creation_ts>
          <short_desc>OffscreenCanvas: imported/w3c/web-platform-tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.commit.html is failing</short_desc>
          <delta_ts>2026-03-13 01:24:09 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Canvas</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>259906</dependson>
          <blocked>183720</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>clord</cc>
    
    <cc>dino</cc>
    
    <cc>dpino</cc>
    
    <cc>heycam</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1680056</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-08-13 13:07:44 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.commit.html

Started flaky failing since OffScreen canvas support was enabled and the baseline updated to be actually passing.

Diff:

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.commit-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.commit-actual.txt
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: Error: assert_equals: Green channel of the pixel at (5, 5) expected 255 but got 0
 
 PASS Test that calling OffscreenCanvas&apos;s commit pushes its contents to its placeholder. 
 PASS Test that calling commit on an OffscreenCanvas that is not transferred from a HTMLCanvasElement is a noop. 

Looking at the test with --iterations=100, all iterations pass with the timeout for the automatic commit set at &gt;=3ms. Maybe the immediate timeout is too eager for the commit operation to fulfill?

Running it on Chrome 84 (Ubuntu 20.04) raises the same message about the green channel.

Another issue with this test: As the assert runs in the setTimeout callback, the test is registered as done and thus the PASS message, while in fact, it failed. I&apos;m opening a WPT PR changing it to be an async test and actually emit FAIL when the assert fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1680070</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-08-13 13:46:12 -0700</bug_when>
    <thetext>WPT PR using async_test: https://github.com/web-platform-tests/wpt/pull/24999</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1681784</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-08-20 13:08:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/67500909&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755468</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2021-04-29 11:17:44 -0700</bug_when>
    <thetext>Laura, has the update test been synced back to WebKit now? Is the test still flakey?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1768080</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-06-09 00:20:06 -0700</bug_when>
    <thetext>The only test filed under this bug was:

  - imported/w3c/web-platform-tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.commit.html

GTK post-commit test bot reports the test has been failing consistently for the last 4000 revisions.

Diff:

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.commit-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.commit-actual.txt
@@ -1,4 +1,4 @@
 
-PASS Test that calling OffscreenCanvas&apos;s commit pushes its contents to its placeholder.
+FAIL Test that calling OffscreenCanvas&apos;s commit pushes its contents to its placeholder. assert_equals: Green channel of the pixel at (5, 5) expected 255 but got 0
 PASS Test that calling commit on an OffscreenCanvas that is not transferred from a HTMLCanvasElement is a noop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1813374</commentid>
    <comment_count>5</comment_count>
    <who name="Cameron McCormack (:heycam)">heycam</who>
    <bug_when>2021-11-09 15:39:13 -0800</bug_when>
    <thetext>It would be good to understand why this test is failing.  This is OffscreenCanvas used on the main thread, and commit() is seemingly not doing the right thing.  The version of the test in a worker thread (html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.commit.w.html) is passing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2189934</commentid>
    <comment_count>6</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2026-03-13 01:24:09 -0700</bug_when>
    <thetext>TestExpectations entry removed in bug 259906</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>