<?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>227053</bug_id>
          
          <creation_ts>2021-06-15 16:24:57 -0700</creation_ts>
          <short_desc>[GLIB] REGRESSION(r277896): fast/canvas/canvas-imageSmoothingEnabled.html and fast/canvas/canvas-imageSmoothingQuality.html are failing</short_desc>
          <delta_ts>2023-11-12 12:15:33 -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>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>264605</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=225952</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fujii</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1770007</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-06-15 16:24:57 -0700</bug_when>
    <thetext>r277896 change imageSmoothingQuality default value to &apos;Low&apos; for all platforms, since that&apos;s how defined in the specification.

That change made 2 tests start failing:

  fast/canvas/canvas-imageSmoothingEnabled.html [ Failure ]
  fast/canvas/canvas-imageSmoothingQuality.html [ Failure ]

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/fast/canvas/canvas-imageSmoothingEnabled-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/fast/canvas/canvas-imageSmoothingEnabled-actual.txt
@@ -19,9 +19,9 @@
 PASS left_of_center_pixel.data[1] is 0
 PASS left_of_center_pixel.data[2] is 0
 Test that the image is smoothed when imageSmoothingEnabled is set to true.
-PASS left_of_center_pixel.data[0] !== 0 is true
-PASS left_of_center_pixel.data[1] !== 0 is true
-PASS left_of_center_pixel.data[2] !== 0 is true
+FAIL left_of_center_pixel.data[0] !== 0 should be true. Was false.
+FAIL left_of_center_pixel.data[1] !== 0 should be true. Was false.
+FAIL left_of_center_pixel.data[2] !== 0 should be true. Was false.
 Test that restoring actually changes smoothing and not just the attribute value. We are restoring to a point where imageSmoothingEnabled is set to false.
 PASS left_of_center_pixel.data[0] is 0
 PASS left_of_center_pixel.data[1] is 0

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/fast/canvas/canvas-imageSmoothingQuality-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/fast/canvas/canvas-imageSmoothingQuality-actual.txt
@@ -8,14 +8,14 @@
 PASS mediumContext.imageSmoothingQuality is &apos;medium&apos;
 PASS highContext.imageSmoothingQuality is &apos;high&apos;
 
-PASS lowData is not mediumData
+FAIL lowData should not be {&quot;0&quot;:0,&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:128}.
 PASS mediumData is not highData
 PASS lowData is not highData
 
 PASS sampleAlpha(lowData) is &gt;= sampleAlpha(mediumData)
 PASS sampleAlpha(mediumData) is &gt;= sampleAlpha(highData)
 
-FAIL defaultContext.imageSmoothingQuality should be low. Was medium.
+PASS defaultContext.imageSmoothingQuality is &apos;low&apos;
 
 PASS highContext.imageSmoothingEnabled = false; highContext.imageSmoothingQuality is &apos;high&apos;
 PASS highContext.imageSmoothingQuality = &apos;medium&apos;; highContext.imageSmoothingQuality is &apos;medium&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991977</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-11-12 12:15:33 -0800</bug_when>
    <thetext>Cairo based ports pass the test after 270586@main (bug#264605).

Expected to fail, but passed: (2)
  fast/canvas/canvas-imageSmoothingEnabled.html
  fast/canvas/canvas-imageSmoothingQuality.html

https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;test=fast%2Fcanvas%2Fcanvas-imageSmoothingQuality.html&amp;test=fast%2Fcanvas%2Fcanvas-imageSmoothingEnabled.html

*** This bug has been marked as a duplicate of bug 264605 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>