WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
213947
[GStreamer] media/vp9.html failing since check-in in
r263894
https://bugs.webkit.org/show_bug.cgi?id=213947
Summary
[GStreamer] media/vp9.html failing since check-in in r263894
Lauro Moura
Reported
2020-07-03 19:04:23 PDT
Like the webrtc counterpart in
bug213780
, media/vp9.html is failing since added: --- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/vp9-expected.txt +++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/vp9-actual.txt @@ -1,5 +1,5 @@ -PASS HTMLMediaElement.canPlay VP9 +FAIL HTMLMediaElement.canPlay VP9 assert_equals: canPlayType expected "maybe" but got "probably" PASS VP9 decoding
Attachments
Patch
(1.26 KB, patch)
2020-07-27 08:39 PDT
,
Xabier Rodríguez Calvar
no flags
Details
Formatted Diff
Diff
Patch
(3.84 KB, patch)
2020-07-27 09:25 PDT
,
Xabier Rodríguez Calvar
no flags
Details
Formatted Diff
Diff
Patch
(3.84 KB, patch)
2020-07-28 01:02 PDT
,
Xabier Rodríguez Calvar
pnormand
: review+
Details
Formatted Diff
Diff
Patch for landing
(4.63 KB, patch)
2020-07-28 04:47 PDT
,
Xabier Rodríguez Calvar
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Philippe Normand
Comment 1
2020-07-04 01:15:28 PDT
I don't think 2 bugs are needed. *** This bug has been marked as a duplicate of
bug 213780
***
Philippe Normand
Comment 2
2020-07-04 01:16:09 PDT
Oh it's 2 different tests. My bad :)
Philippe Normand
Comment 3
2020-07-08 04:15:05 PDT
media/vp9.html has this assert: assert_equals(video.canPlayType("video/mp4; codecs=vp9"), "maybe", "canPlayType"); Youenn, in GTK/WPE this returns "probably". Would it be OK to update the test changing the assert to a less restrictive test? Perhaps simply log the result in test expectation?
Xabier Rodríguez Calvar
Comment 4
2020-07-08 23:00:11 PDT
(In reply to Philippe Normand from
comment #3
)
> media/vp9.html has this assert: > > assert_equals(video.canPlayType("video/mp4; codecs=vp9"), "maybe", > "canPlayType"); > > Youenn, in GTK/WPE this returns "probably". Would it be OK to update the > test changing the assert to a less restrictive test? Perhaps simply log the > result in test expectation?
From what I read in the spec at [1], it's clear that we're specifying the codec here so a user agent is per spec allowed to return probably. [1]
https://html.spec.whatwg.org/multipage/media.html#dom-navigator-canplaytype
This makes this test very highly dependent on the platform so I'd say we have to log the result and make different expectations for platforms. You can leave a general one with maybe and another glib one with probably.
Philippe Normand
Comment 5
2020-07-09 02:04:20 PDT
Also exiting early if !window.internals.usingAppleInternalSDK is a bit sad, for non-Apple ports :(
youenn fablet
Comment 6
2020-07-20 06:15:58 PDT
(In reply to Philippe Normand from
comment #5
)
> Also exiting early if !window.internals.usingAppleInternalSDK is a bit sad, > for non-Apple ports :(
(In reply to Philippe Normand from
comment #3
)
> media/vp9.html has this assert: > > assert_equals(video.canPlayType("video/mp4; codecs=vp9"), "maybe", > "canPlayType"); > > Youenn, in GTK/WPE this returns "probably". Would it be OK to update the > test changing the assert to a less restrictive test? Perhaps simply log the > result in test expectation?
I think it is fine to check for either maybe or probably. (In reply to Philippe Normand from
comment #5
)
> Also exiting early if !window.internals.usingAppleInternalSDK is a bit sad, > for non-Apple ports :(
We could probably rewrite the test so that rejection of video.play() is tolerated in case of non Apple Internal SDK.
Xabier Rodríguez Calvar
Comment 7
2020-07-27 08:39:13 PDT
Created
attachment 405278
[details]
Patch
Adrian Perez
Comment 8
2020-07-27 09:05:12 PDT
Comment on
attachment 405278
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405278&action=review
> LayoutTests/ChangeLog:8 > + * media/vp9.html: Non Apple ports return propably instead of ""
Typo: propably → probably
Xabier Rodríguez Calvar
Comment 9
2020-07-27 09:25:57 PDT
Created
attachment 405285
[details]
Patch Add isApple which gives better granularity and allows GStreamer to run the second test.
Darin Adler
Comment 10
2020-07-27 12:10:56 PDT
Comment on
attachment 405285
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405285&action=review
> Source/WebCore/testing/Internals.cpp:5531 > +#if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(MACCATALYST) > + return true; > +#else > + return false; > +#endif
This is an incorrect implementation. Will return false for watchOS and tvOS. Simpler is to just write PLATFORM(COCOA). Not thrilled with the name of this. It seems imprecise. It will return false if you are running on Apple hardware but with a non-Apple port of WebKIt, and will return false if you are running on Windows with an Apple port of WebKit.
Xabier Rodríguez Calvar
Comment 11
2020-07-27 22:14:31 PDT
(In reply to Darin Adler from
comment #10
)
> Comment on
attachment 405285
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=405285&action=review
> > > Source/WebCore/testing/Internals.cpp:5531 > > +#if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(MACCATALYST) > > + return true; > > +#else > > + return false; > > +#endif > > This is an incorrect implementation. Will return false for watchOS and tvOS. > Simpler is to just write PLATFORM(COCOA).
Ok,
> Not thrilled with the name of this. It seems imprecise. It will return false > if you are running on Apple hardware but with a non-Apple port of WebKIt, > and will return false if you are running on Windows with an Apple port of > WebKit.
I'll name it isApplePort.
Xabier Rodríguez Calvar
Comment 12
2020-07-28 01:02:32 PDT
Created
attachment 405344
[details]
Patch Implemented with internals.usingGStreamer()
Xabier Rodríguez Calvar
Comment 13
2020-07-28 04:47:51 PDT
Created
attachment 405350
[details]
Patch for landing
EWS
Comment 14
2020-07-28 05:18:11 PDT
Committed
r264975
: <
https://trac.webkit.org/changeset/264975
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 405350
[details]
.
Radar WebKit Bug Importer
Comment 15
2020-07-28 05:19:22 PDT
<
rdar://problem/66212906
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug