Closed Bug 903428 Opened 12 years ago Closed 7 years ago

Webm attachments "details" page lie about browser support

Categories

(Bugzilla :: Attachments & Requests, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 670623

People

(Reporter: kats, Unassigned)

Details

Attachments

(1 file)

Attached image webm.png
See screenshot. If I just click on the attachment directly it plays fine, but going to the "details" page shows an incorrect error message.
That's because we look at the Accept: header to determine if the attachment can be displayed in the browser itself, and video/ is not part of this header. When you look at the attachment directly, we ignore this header, which is why you can view the video.
I would argue that the Bugzilla behaviour is wrong, then. Technically FF sends a "*/*" as part of the accept header, which includes video/. I understand that using "*/*" means that you'll just try to display every single attachment, including things like zip files which will throw up download dialogs, and that is undesirable. However obviously there is some sort of whitelist because text/plain and image/png files show up fine in the "details" page, even though they are not in the accept header either. (My current accept header is "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"). Maybe we just need to add video/webm to the whitelist?
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: