Closed Bug 1805365 Opened 3 years ago Closed 1 month ago

Mozilla is replacing file extension .mp2 with .wav

Categories

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

Firefox 107
defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: karl.banke, Assigned: az)

References

(Blocks 1 open bug)

Details

(Keywords: webcompat:platform-bug)

User Story

https://mozilla-hub.atlassian.net/browse/FFXP-3168
platform-scheduled:2025-06-01

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Steps to reproduce:

We run a website that allows users from global media companies to download audio files for productions. One of the encoding formats used is mp2. These files are distributed within a wav container, however these files are widely known as "mp2". Also various media players, in particular the Mac OS Audio Player (AKA "Music") will only play the file if it is suffixed with .mp2.

Actual results:

Downloading a file yields the following response from the server

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-disposition: attachment; filename="xxx.mp2"
Content-Type: audio/mpeg;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 13 Dec 2022 08:38:11 GMT
Strict-Transport-Security: max-age=21600000

However the file is saved as xxx.wav

Expected results:

The file should be saved as xxx.mp2 as hinted in the content-disposition header and the supplied content type as it happens with any other browser we are aware of (Safari, Chrome, IE).

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Flags: needinfo?(jmathies)

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Flags: needinfo?(jmathies)

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Severity: -- → S4
Flags: needinfo?(jmathies)
User Story: (updated)
User Story: (updated)
User Story: (updated)
User Story: (updated)
Assignee: nobody → azebrowski
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9489551 - Attachment description: Bug 1805365 - Allow wav files distributed within mp2 containers to retain an .mp2 extension when saving to disk. → Bug 1805365 - Part 1: Allow mp2 files distributed within wav containers to retain an .mp2 extension when saving to disk. r=padenot
Attachment #9489839 - Attachment description: Bug 1805365 - Part 2: Add audio/mpeg and audio/x-wav MIME type support to filename validation mochitest (browser_save_filenames.js) → Bug 1805365 - Part 2: Add audio/mpeg and audio/x-wav MIME type support to filename validation mochitest (browser_save_filenames.js) r=padenot
Attachment #9489840 - Attachment description: Bug 1805365 - Part 3: Verify that .mp2 files served as audio/x-wav retain their extension when saved. → Bug 1805365 - Part 3: Verify that .mp2 files served as audio/x-wav retain their extension when saved. r=padenot
Pushed by azebrowski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/814af0869083 Part 1: Allow mp2 files distributed within wav containers to retain an .mp2 extension when saving to disk. r=padenot
Pushed by azebrowski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ea13cf4a49fb Part 2: Add audio/mpeg and audio/x-wav MIME type support to filename validation mochitest (browser_save_filenames.js) r=padenot https://hg.mozilla.org/integration/autoland/rev/e648622b14a7 Part 3: Verify that .mp2 files served as audio/x-wav retain their extension when saved. r=padenot
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: