Bug 75078 - [GStreamer] media/W3C failures
Summary: [GStreamer] media/W3C failures
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 04:25 PST by Philippe Normand
Modified: 2012-02-21 02:33 PST (History)
0 users

See Also:


Attachments
Patch (14.69 KB, patch)
2012-02-17 08:52 PST, Philippe Normand
mrobinson: review+
mrobinson: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2011-12-22 04:25:58 PST
media/W3C are failing badly on GTK. About 62 of those tests time out. From what I can see the video element tries to load URIs like this:

"file:///path/to/WebKit/LayoutTests/media/content/test.wav?Thu Dec 22 2011 13:20:05 GMT+0100 (CET)0.6502569520380348"

Which fails because of the parameters.
Comment 1 Philippe Normand 2012-02-17 08:52:52 PST
Created attachment 127597 [details]
Patch
Comment 2 Martin Robinson 2012-02-20 11:24:54 PST
Comment on attachment 127597 [details]
Patch

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

What is the meaning of PASS "maybe" is "maybe" in the new baselines?

Please take a look at the suggestion below before landing.

> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:288
> +    KURL kurl(KURL(), url);
> +    String cleanUrl(url);

I think it would be better here to do:

if (kurl.isLocalFile()) {
    kurl.setQuery("");
    kurl.removeFragmentIdentifier();
}
Comment 3 Philippe Normand 2012-02-21 02:22:15 PST
Comment on attachment 127597 [details]
Patch

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

>> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:288
>> +    String cleanUrl(url);
> 
> I think it would be better here to do:
> 
> if (kurl.isLocalFile()) {
>     kurl.setQuery("");
>     kurl.removeFragmentIdentifier();
> }

I actually tried this but setQuery() doesn't remove the leading '?'.
Comment 4 Philippe Normand 2012-02-21 02:26:33 PST
(In reply to comment #2)
> (From update of attachment 127597 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=127597&action=review
> 
> What is the meaning of PASS "maybe" is "maybe" in the new baselines?
> 

This is how the tests are written. You can see those messages in the other media/W3C baselines too :)

I think these new baselines are for tests skipped on Mac, actually. For now I think it's safer to have them in the gtk directory.
Comment 5 Philippe Normand 2012-02-21 02:33:59 PST
Committed r108327: <http://trac.webkit.org/changeset/108327>