Closed Bug 1283415 Opened 8 years ago Closed 8 years ago

Empty poster attribute on video element throw an error

Categories

(Core :: Audio/Video: Playback, defect, P1)

50 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: thainbbdl, Assigned: jaws)

Details

(Keywords: compat)

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20160629030209

Steps to reproduce:

Add an empty poster attribute on a video element
see : http://jsbin.com/tetovicoxe/edit?html,console,output


Actual results:

Firefox throw an error while other vendors ignore this attribute


Expected results:

The poster attribute should be ignored 
https://www.w3.org/TR/html5/embedded-content-0.html#attr-video-poster
Status: UNCONFIRMED → NEW
Component: Untriaged → Video/Audio Controls
Ever confirmed: true
Product: Firefox → Toolkit
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Component: Video/Audio Controls → Audio/Video
Product: Toolkit → Core
Component: Audio/Video → Audio/Video: Playback
Comment on attachment 8768851 [details]
Bug 1283415 - Only set the poster src on the anonymous content if the attribute is not empty.

https://reviewboard.mozilla.org/r/62872/#review59838
Attachment #8768851 - Flags: review?(cpearce) → review+
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e097b3f7f21b
Only set the poster src on the anonymous content if the attribute is not empty. r=cpearce
Attached patch Updated patchSplinter Review
mozreview won't let me push this and I think it's because this already was already landed once through mozreview. "abort: reviewboard error: One or more fields had errors (HTTP 400, API Error 105); identifier: Parent review request is submitted or discarded"

I changed this patch to unset the "src" attribute on the poster image. Previously it was unsetting the "poster" attribute on the poster image, which would be non-existant anyways. This just happened to work for the reftest case that was used, since the poster attribute was still present but was set to the empty value.

Since this now follows a different codepath, it made the already present bug visible in the reftest.
Attachment #8768851 - Attachment is obsolete: true
Attachment #8769490 - Flags: review?(cpearce)
Keywords: compat
Priority: -- → P1
Attachment #8769490 - Flags: review?(cpearce) → review+
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/60e03643f8e2
Only set the poster src on the anonymous content if the attribute is not empty. r=cpearce
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/60e03643f8e2
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: