<?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>57728</bug_id>
          
          <creation_ts>2011-04-03 13:12:35 -0700</creation_ts>
          <short_desc>Improper use of &amp;quot in video-can-play-type.html layout test</short_desc>
          <delta_ts>2011-04-06 11:52:41 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nancy Piedra">nancy.piedra</reporter>
          <assigned_to name="Nancy Piedra">nancy.piedra</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>eric</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>378575</commentid>
    <comment_count>0</comment_count>
    <who name="Nancy Piedra">nancy.piedra</who>
    <bug_when>2011-04-03 13:12:35 -0700</bug_when>
    <thetext>The layout test media/video-can-play-type.html uses the &amp;quot entity reference improperly.  See below:

testExpected(&quot;video.canPlayType(&apos;video/mpeg; Codecs=&amp;quot;avc1.4D400C&amp;quot;&apos;)&quot;, &quot;probably&quot;);


The &amp;quot entity reference does not get decoded so the ContentType class cannot parse the codecs parameter.  This only seems to cause an issue with the Qt MediaPlayer implementation as I noticed that no other implementation seems to look at the codecs parameter (but if they did use this parameter, they would see the same problem).

An attempt to parse the &amp;quot in the ContentType class was attempted here:
https://bugs.webkit.org/show_bug.cgi?id=53275

But I think the entity reference should not have been used in this case and ContentType should not be required to decode it.


To reproduce the issue, run the video-can-play-type.html test and check the value of contentType in the ContentType class constructor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378582</commentid>
    <comment_count>1</comment_count>
      <attachid>88019</attachid>
    <who name="Nancy Piedra">nancy.piedra</who>
    <bug_when>2011-04-03 13:47:05 -0700</bug_when>
    <thetext>Created attachment 88019
Patch for video-can-play-type layout test

Patch to change &quot;&amp;quote;&quot; to &apos;\&quot;&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378651</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-04-03 22:19:02 -0700</bug_when>
    <thetext>Is this &quot;improper&quot; use of &amp;quot a useful test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378744</commentid>
    <comment_count>3</comment_count>
    <who name="Nancy Piedra">nancy.piedra</who>
    <bug_when>2011-04-04 05:42:03 -0700</bug_when>
    <thetext>Most of the MediaPlayer implementations that I&apos;ve looked at so far (except for Qt) only check for the presence of a &apos;codecs&apos; parameter so no one has noticed that this isn&apos;t parsed properly.

I think this misuse of &amp;quot could be a good negative test.  I&apos;m going to be modifying the Qt implementation to properly handle the codecs parameter and at that point I&apos;ll add more tests for parsing the codecs parameter and can include a test for this misuse of &amp;quot.

I&apos;ll probably do that under one of these two bugs:
https://bugs.webkit.org/show_bug.cgi?id=42094
https://bugs.webkit.org/show_bug.cgi?id=53275

In the meantime, this test should probably be fixed because it does not seem to be a negative test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378879</commentid>
    <comment_count>4</comment_count>
      <attachid>88019</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-04-04 10:49:50 -0700</bug_when>
    <thetext>Comment on attachment 88019
Patch for video-can-play-type layout test

I think that this is fine to land. Eric Carlson (the author of the test) is CC&apos;ed on this bug, and can educate us if &amp;quot; was used intentionally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379362</commentid>
    <comment_count>5</comment_count>
      <attachid>88019</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-05 00:31:06 -0700</bug_when>
    <thetext>Comment on attachment 88019
Patch for video-can-play-type layout test

Clearing flags on attachment: 88019

Committed r82909: &lt;http://trac.webkit.org/changeset/82909&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379363</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-05 00:31:10 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379372</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-04-05 01:34:17 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/82909 might have broken GTK Linux 32-bit Release</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379418</commentid>
    <comment_count>8</comment_count>
    <who name="Nancy Piedra">nancy.piedra</who>
    <bug_when>2011-04-05 03:25:42 -0700</bug_when>
    <thetext>I checked the Linux Gtk 32-bit build and on the buildbot and it does not seem to have any failures right now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380688</commentid>
    <comment_count>9</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2011-04-06 11:52:41 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 88019 [details])
&gt; I think that this is fine to land. Eric Carlson (the author of the test) is CC&apos;ed on this bug, and can educate us if &amp;quot; was used intentionally.

It is not useful, and was not added intentionally.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>88019</attachid>
            <date>2011-04-03 13:47:05 -0700</date>
            <delta_ts>2011-04-05 00:31:06 -0700</delta_ts>
            <desc>Patch for video-can-play-type layout test</desc>
            <filename>videocanplay.diff</filename>
            <type>text/plain</type>
            <size>1616</size>
            <attacher name="Nancy Piedra">nancy.piedra</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDgyNzc4KQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTEtMDQtMDIgIE5hbmN5IFBpZWRyYSAgPG5h
bmN5LnBpZWRyYUBub2tpYS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BT
ISkuCisKKyAgICAgICAgSW1wcm9wZXIgdXNlIG9mICZxdW90IGluIHZpZGVvLWNhbi1wbGF5LXR5
cGUgbGF5b3V0IHRlc3QKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcu
Y2dpP2lkPTU3NzI4CisKKyAgICAgICAgKiBtZWRpYS92aWRlby1jYW4tcGxheS10eXBlLmh0bWw6
CisKIDIwMTEtMDQtMDIgIERhbiBCZXJuc3RlaW4gIDxtaXR6QGFwcGxlLmNvbT4KIAogICAgICAg
ICBSZXZlcnRlZCByODI3NzUgZHVlIHRvIGNoYW5nZXMgaW4gPGRldGFpbHM+IHRlc3QgcmVzdWx0
cywgd2hpY2ggYXJlCkluZGV4OiBMYXlvdXRUZXN0cy9tZWRpYS92aWRlby1jYW4tcGxheS10eXBl
Lmh0bWwKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09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BlY3RlZCgidmlkZW8uY2FuUGxheVR5cGUoJ2F1ZGlvL21wZWcnKSIsICJtYXli
ZSIpOwogICAgICAgICAgICAgdGVzdEV4cGVjdGVkKCJ2aWRlby5jYW5QbGF5VHlwZSgnYXVkaW8v
V2F2JykiLCAibWF5YmUiKTsKIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>