<?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>60229</bug_id>
          
          <creation_ts>2011-05-04 16:28:57 -0700</creation_ts>
          <short_desc>Workaround iTunes&apos; incorrect registry entry for .m4a extensions.</short_desc>
          <delta_ts>2011-05-05 14:59:34 -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>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jer Noble">jer.noble</reporter>
          <assigned_to name="Jer Noble">jer.noble</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>398383</commentid>
    <comment_count>0</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-05-04 16:28:57 -0700</bug_when>
    <thetext>When iTunes is installed, it adds a registry key: &quot;HKCR\.m4a\Content Type&quot; = &quot;audio/m4a&quot;.  QuickTime (without iTunes) installs the same registry key as &quot;Content Type&quot; = &quot;audio/x-m4a&quot;.  QuickTime explicitly does not support &quot;audio/m4a&quot; codecs MIME types on either Mac or Windows, so .m4a files fail to load in WebKit when iTunes is installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398385</commentid>
    <comment_count>1</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-05-04 16:29:48 -0700</bug_when>
    <thetext>Work around this by adding a hard coded entry to the MIME type map of &quot;.m4a&quot;-&gt;&quot;audio/x-m4a&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398402</commentid>
    <comment_count>2</comment_count>
      <attachid>92346</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-05-04 16:49:18 -0700</bug_when>
    <thetext>Created attachment 92346
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398406</commentid>
    <comment_count>3</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-05-04 16:53:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/9385799&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398436</commentid>
    <comment_count>4</comment_count>
      <attachid>92346</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-05-04 17:24:23 -0700</bug_when>
    <thetext>Comment on attachment 92346
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=92346&amp;action=review

&gt; Source/WebCore/platform/win/MIMETypeRegistryWin.cpp:100
&gt;          mimetypeMap.add(&quot;wmlc&quot;, &quot;application/vnd.wap.wmlc&quot;);
&gt; +        mimetypeMap.add(&quot;m4a&quot;, &quot;audio/x-m4a&quot;);

I think the existing list is sorted in alphabetical order by extension.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398437</commentid>
    <comment_count>5</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-05-04 17:28:32 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 92346 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=92346&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/platform/win/MIMETypeRegistryWin.cpp:100
&gt; &gt;          mimetypeMap.add(&quot;wmlc&quot;, &quot;application/vnd.wap.wmlc&quot;);
&gt; &gt; +        mimetypeMap.add(&quot;m4a&quot;, &quot;audio/x-m4a&quot;);
&gt; 
&gt; I think the existing list is sorted in alphabetical order by extension.

It looks like it&apos;s sorted in willy-nilly order.  Would you like it to be sorted in alphabetical order?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399026</commentid>
    <comment_count>6</comment_count>
      <attachid>92346</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-05-05 14:16:26 -0700</bug_when>
    <thetext>Comment on attachment 92346
Patch

Adding cq+.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399077</commentid>
    <comment_count>7</comment_count>
      <attachid>92346</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-05 14:59:29 -0700</bug_when>
    <thetext>Comment on attachment 92346
Patch

Clearing flags on attachment: 92346

Committed r85886: &lt;http://trac.webkit.org/changeset/85886&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399078</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-05 14:59:34 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>92346</attachid>
            <date>2011-05-04 16:49:18 -0700</date>
            <delta_ts>2011-05-05 14:59:29 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-60229-20110504164923.patch</filename>
            <type>text/plain</type>
            <size>1681</size>
            <attacher name="Jer Noble">jer.noble</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODU3MTkKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCA4Nzc0NzU1NjY3ZjNjZDEx
OThkZDJmNDM3ZmQ3MjI1OGVhNDMwOTkwLi5mMGMyYjAyZGYxNmRlNzk2YWIxYTkyZTIzNGQ2ZTc2
ZjY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