Add a new non-standard HTTP header for setting page title in media streams

RESOLVED WONTFIX

Status

()

Core
Networking: HTTP
RESOLVED WONTFIX
4 years ago
2 years ago

People

(Reporter: tyronesheeit, Unassigned)

Tracking

Trunk
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Build ID: 20140923175406

Steps to reproduce:

When streaming media files directly there is no <title> tag to set the page title, so Firefox defaults to object name from url.
We should accept a non-standard HTTP response header that will set the page title.
eg.
GET https://example.com/download.php?file=1234567

response:
HTTP/1.1 200 OK
Content-Disposition: inline; filename="coolsong.mp3"
Content-transfer-encoding: binary
Content-Length: 133700
Content-Type: audio/mpeg
X-Mozilla-Title: "Rick Astley - Never Gonna Give You Up"


Actual results:

A song will start playing in browser and the page title shown in tab will be: download.php
If you try to save the stream, the file dialog will automatically set the file name to: coolsong.mp3


Expected results:

The page title shown in tab should be: Rick Astley - Never Gonna Give You Up

Updated

4 years ago
Component: Untriaged → Networking: HTTP
Product: Firefox → Core
need standards activity
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.