[BlackBerry] URL decode data: URLs before passing to the platform media player.

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

Patch by John Griggs <jgriggs@blackberry.com> on 2013-04-22
Reviewed by Rob Buis.

Pass data URL through URL decoding before passing to platform media player.  PR 313635.

Reviewed internally by Liam Quinn

* platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
(WebCore::MediaPlayerPrivate::load):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e4f44ff5
2013-04-22 John Griggs <jgriggs@blackberry.com>
[BlackBerry] URL decode data: URLs before passing to the platform media player.
https://bugs.webkit.org/show_bug.cgi?id=114887
Reviewed by Rob Buis.
Pass data URL through URL decoding before passing to platform media player. PR 313635.
Reviewed internally by Liam Quinn
* platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
(WebCore::MediaPlayerPrivate::load):
2013-04-22 Xuefei Ren <xren@blackberry.com>
......@@ -183,8 +183,8 @@ void MediaPlayerPrivate::load(const WTF::String& url)
mediaURL.setProtocol("file");
mediaURL.setPath(fsRoot + "/" + secOrigin + "/" + fsPath);
modifiedUrl = mediaURL.string();
} else if (modifiedUrl.startsWith("file://")) {
// The QNX Multimedia Framework cannot handle filenames containing URL escape sequences.
} else if (modifiedUrl.startsWith("file://") || modifiedUrl.startsWith("data:")) {
// The QNX Multimedia Framework cannot handle filenames or data containing URL escape sequences.
modifiedUrl = decodeURLEscapeSequences(modifiedUrl);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment