[Webkit-unassigned] [Bug 29842] [GTK] data: uri support in media player

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 30 04:21:21 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29842





--- Comment #4 from Sebastian Dröge <slomo at circular-chaos.org>  2009-09-30 04:21:22 PDT ---
Oh and one note to the parsing of the data: URIs: RFC2397 says, that it's

"data:" [ mediatype ] [ ";base64" ] "," data

mediatype is a normal mimetype, which means that it can contain parameters.

Example:
data:text/plain;charset=ISO-8859-1;base64,ABCDEFGH

Currently you split the URI after the first ";" with "," as delimiter. In the
above case this would give you

"charset=ISO-8859-1;base64" and "ABCDEFGH" and then you fail because the first
thing is not only base64.

simple check if the first split string has "base64" as suffix or if you want to
do it cleaner: split everything after the colon with "," as delimiter and then
split the first part with ";" as delimiter and check if that's a mediatype that
is supported (e.g. last string is "base64").

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list