Bug 60229 - Workaround iTunes' incorrect registry entry for .m4a extensions.
Summary: Workaround iTunes' incorrect registry entry for .m4a extensions.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2011-05-04 16:28 PDT by Jer Noble
Modified: 2011-05-05 14:59 PDT (History)
1 user (show)

See Also:


Attachments
Patch (1.64 KB, patch)
2011-05-04 16:49 PDT, Jer Noble
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2011-05-04 16:28:57 PDT
When iTunes is installed, it adds a registry key: "HKCR\.m4a\Content Type" = "audio/m4a".  QuickTime (without iTunes) installs the same registry key as "Content Type" = "audio/x-m4a".  QuickTime explicitly does not support "audio/m4a" codecs MIME types on either Mac or Windows, so .m4a files fail to load in WebKit when iTunes is installed.
Comment 1 Jer Noble 2011-05-04 16:29:48 PDT
Work around this by adding a hard coded entry to the MIME type map of ".m4a"->"audio/x-m4a".
Comment 2 Jer Noble 2011-05-04 16:49:18 PDT
Created attachment 92346 [details]
Patch
Comment 3 Jer Noble 2011-05-04 16:53:55 PDT
<rdar://problem/9385799>
Comment 4 Darin Adler 2011-05-04 17:24:23 PDT
Comment on attachment 92346 [details]
Patch

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

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

I think the existing list is sorted in alphabetical order by extension.
Comment 5 Jer Noble 2011-05-04 17:28:32 PDT
(In reply to comment #4)
> (From update of attachment 92346 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=92346&action=review
> 
> > Source/WebCore/platform/win/MIMETypeRegistryWin.cpp:100
> >          mimetypeMap.add("wmlc", "application/vnd.wap.wmlc");
> > +        mimetypeMap.add("m4a", "audio/x-m4a");
> 
> I think the existing list is sorted in alphabetical order by extension.

It looks like it's sorted in willy-nilly order.  Would you like it to be sorted in alphabetical order?
Comment 6 Jer Noble 2011-05-05 14:16:26 PDT
Comment on attachment 92346 [details]
Patch

Adding cq+.
Comment 7 WebKit Commit Bot 2011-05-05 14:59:29 PDT
Comment on attachment 92346 [details]
Patch

Clearing flags on attachment: 92346

Committed r85886: <http://trac.webkit.org/changeset/85886>
Comment 8 WebKit Commit Bot 2011-05-05 14:59:34 PDT
All reviewed patches have been landed.  Closing bug.