Open Bug 472417 Opened 16 years ago Updated 2 years ago

view-source links to audio and video documents should display them regularly, not as text

Categories

(Toolkit :: View Source, defect, P3)

defect

Tracking

()

People

(Reporter: cbartley, Unassigned)

References

Details

When a "view-source:" URL refers to an audio or video document, it should display the document normally, not as text, since these types of documents don't have a meaningful source representation anyway.

See bug 464339 which addresses similar handling of images.
No longer blocks: 464339
Blocks: 464339

The bug assignee didn't login in Bugzilla in the last 7 months.
:Honza, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: cab → nobody
Flags: needinfo?(odvarko)

Simple test to demonstrate this issue:

// Video file URL
https://media.w3.org/2010/05/sintel/trailer.mp4

// View source of the video file
view-source:https://media.w3.org/2010/05/sintel/trailer.mp4

Opening the view-source URL shows text representing the video cotent.

Note that Tools -> Browser Tools -> Page Source is disabled for video files and the user needs to add view-source protocol manually.

Gijs, this was filed 13 years ago, is this a bug or a feature?

Honza

Flags: needinfo?(odvarko) → needinfo?(gijskruitbosch+bugs)

(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #6)

Simple test to demonstrate this issue:

// Video file URL
https://media.w3.org/2010/05/sintel/trailer.mp4

// View source of the video file
view-source:https://media.w3.org/2010/05/sintel/trailer.mp4

Opening the view-source URL shows text representing the video cotent.

Note that Tools -> Browser Tools -> Page Source is disabled for video files and the user needs to add view-source protocol manually.

The shortcut works before the file finishes loading, fwiw.

Gijs, this was filed 13 years ago, is this a bug or a feature?

It's a bug but fixing it is probably not super high priority. I think we'd need to change https://searchfox.org/mozilla-central/rev/3269d4c928ef0d8310c2f57634e9b6057aa636e9/layout/build/nsContentDLF.cpp#109-112 to also make an exception for media content (not just images).

Flags: needinfo?(gijskruitbosch+bugs)
Severity: normal → S3
Priority: -- → P3

The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates.
:Honza, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(odvarko)

No need to increase the severity/priority in this case.

Flags: needinfo?(odvarko)
You need to log in before you can comment on or make changes to this bug.