<?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>191003</bug_id>
          
          <creation_ts>2018-10-27 17:53:45 -0700</creation_ts>
          <short_desc>[GTK] Layout test imported/w3c/web-platform-tests/mimesniff/mime-types/charset-parameter.window.html is failing</short_desc>
          <delta_ts>2018-10-27 17:53:45 -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>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=190074</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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>rwlbuis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1472769</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-10-27 17:53:45 -0700</bug_when>
    <thetext>Layout test imported/w3c/web-platform-tests/mimesniff/mime-types/charset-parameter.window.html has been failing since it was added in r236787 &quot;Import WPT mimesniff resources&quot;. Text diff:

--- /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/mimesniff/mime-types/charset-parameter.window-expected.txt
+++ /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/mimesniff/mime-types/charset-parameter.window-actual.txt
@@ -6,14 +6,14 @@
 PASS text/html;x=(;charset=gbk 
 PASS text/html;charset=gbk;charset=windows-1255 
 PASS text/html;charset=();charset=GBK 
-PASS text/html;charset =gbk 
+FAIL text/html;charset =gbk assert_equals: expected &quot;UTF-8&quot; but got &quot;GBK&quot;
 PASS text/html ;charset=gbk 
 PASS text/html; charset=gbk 
 PASS text/html;charset= gbk 
 FAIL text/html;charset= &quot;gbk&quot; assert_equals: expected &quot;UTF-8&quot; but got &quot;GBK&quot;
-PASS text/html;charset=&apos;gbk&apos; 
-PASS text/html;charset=&apos;gbk 
-PASS text/html;charset=gbk&apos; 
+FAIL text/html;charset=&apos;gbk&apos; assert_equals: expected &quot;UTF-8&quot; but got &quot;GBK&quot;
+FAIL text/html;charset=&apos;gbk assert_equals: expected &quot;UTF-8&quot; but got &quot;GBK&quot;
+FAIL text/html;charset=gbk&apos; assert_equals: expected &quot;UTF-8&quot; but got &quot;GBK&quot;
 PASS text/html;charset=&apos;;charset=GBK 
 PASS text/html;test;charset=gbk 
 PASS text/html;test=;charset=gbk 
@@ -24,13 +24,13 @@
 FAIL text/html;charset= &quot;;charset=GBK assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
 FAIL text/html;charset=&quot;;charset=foo&quot;;charset=GBK assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
 PASS text/html;charset=&quot;gbk&quot; 
-FAIL text/html;charset=&quot;gbk assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
+PASS text/html;charset=&quot;gbk 
 PASS text/html;charset=gbk&quot; 
-FAIL text/html;charset=&quot; gbk&quot; assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
-FAIL text/html;charset=&quot;gbk &quot; assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
-FAIL text/html;charset=&quot;\ gbk&quot; assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
-FAIL text/html;charset=&quot;\g\b\k&quot; assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
-FAIL text/html;charset=&quot;gbk&quot;x assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
+PASS text/html;charset=&quot; gbk&quot; 
+PASS text/html;charset=&quot;gbk &quot; 
+PASS text/html;charset=&quot;\ gbk&quot; 
+PASS text/html;charset=&quot;\g\b\k&quot; 
+PASS text/html;charset=&quot;gbk&quot;x 
 FAIL text/html;charset=&quot;&quot;;charset=GBK assert_equals: expected &quot;GBK&quot; but got &quot;UTF-8&quot;
 PASS text/html;charset=&quot;;charset=GBK 
 PASS text/html;charset={gbk} 


I&apos;m not sure what&apos;s up, but I&apos;ll caution that encoding detection is probabilistic and it&apos;s expected that different implementations (e.g. ICU vs. uchardet) will return different results for the same input.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>