Media element didn't start loading from its source element child with type=""
Categories
(Core :: Audio/Video, defect, P2)
Tracking
()
People
(Reporter: karlcow, Assigned: alwu)
References
()
Details
Attachments
(2 files)
A test case
https://codepen.io/webcompat/pen/pozdjPG
this source code.
<video>
<source src="http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4">
</video>
<video>
<source src="http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4" type="">
</video>
On Firefox,
- if we do not specify anything, the video is displayed
- If we specify an empty
type=''
, the video is not being displayed.
On Chrome the video is always displayed.
Assignee | ||
Comment 1•5 years ago
|
||
NI myself for further investigation.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
If source element's type is empty, it's equal to not having any type, so we won't have to check can play type.
Assignee | ||
Comment 3•5 years ago
|
||
Empty type is an invalid mime type, but the spec leaves some room for how we should interpret those in this case: https://html.spec.whatwg.org/multipage/media.html#loading-the-media-resource:attr-source-type
With this change I would say we're interpreting the spec to say "if the type parses and a mime type, and the UA definitely doesn't support it, then fail, otherwise continue". In this case the empty MimeType is not certain to be unsupported, so we try our best, which seems reasonable.
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d54bc134d27 part1 : only check source element's type attribute when it's not empty. r=bryce https://hg.mozilla.org/integration/autoland/rev/5a7c394c6f0f part2 : add test 'test_load_source_empty_type.html'. r=bryce
Comment 6•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6d54bc134d27
https://hg.mozilla.org/mozilla-central/rev/5a7c394c6f0f
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Is this something you would like to uplift to 70? Are there examples out there of people reporting this issue? We can also leave it to ride the trains with 71.
Assignee | ||
Comment 8•5 years ago
|
||
I didn't see any other reporting similar issue like this, and it's also not a common issue. So we can probably let it stay on 71.
Updated•5 years ago
|
Updated•5 years ago
|
Description
•