Browser should render unrecognized text/* as text/plain
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: braden, Assigned: nika)
References
Details
Attachments
(3 files)
Comment 1•22 years ago
|
||
Comment 3•22 years ago
|
||
Comment 4•21 years ago
|
||
Updated•21 years ago
|
Comment 5•21 years ago
|
||
Comment 6•21 years ago
|
||
Comment 7•21 years ago
|
||
Comment 8•21 years ago
|
||
Comment 9•21 years ago
|
||
Comment 10•21 years ago
|
||
Comment 11•21 years ago
|
||
Comment 12•20 years ago
|
||
Comment 13•20 years ago
|
||
Comment 14•19 years ago
|
||
Comment 15•17 years ago
|
||
Comment 17•15 years ago
|
||
Updated•15 years ago
|
Comment 18•10 years ago
|
||
Updated•8 years ago
|
Updated•2 years ago
|
Comment 20•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 4 duplicates and 16 votes.
:Gijs, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 21•2 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Comment 23•1 year ago
|
||
@BugBot it is still relevant.
@Boris quote
text/rtf is the only one I can think of
When I get served "Content-Type: Text/x-php; charset=utf-8" or "Content-Type: Text/x-python; charset=utf-8"
Or similar, I don't want to download it, I want to see it. Then I might press Ctrl+S or Ctrl+A if I actually want to download it.
Chrome and Edge understand this. Firefox doesn't. And that is annoying.
Assignee | ||
Comment 24•7 months ago
|
||
This was a typo introduced in bug 1209658. Previously the code would be
checking gXULTypes
. Support for XUL documents has since been removed from
Gecko, so the code is no longer necessary.
Depends on D211797
Updated•7 months ago
|
Assignee | ||
Comment 25•7 months ago
|
||
This patch refactors how we check for text formats when deciding how to handle
resources, such that more text MIME types will be rendered in-browser, rather
than downloaded.
This change requires us to move more away from using the Gecko-Content-Viewers
category in the category manager for this decision, as we need to handle an
unlimited number of MIME types behind the scenes.
Support for Gecko-Content-Viewers was left in for both the in-tree use for
application/http-index-format and dynamically determining whether image/avif
and image/jxl are supported, as well as for the message/rfc822 type used by
Thunderbird.
Depends on D212077
Comment 26•6 months ago
|
||
Comment 28•6 months ago
|
||
Backed out for causing wpt failures on report-frame-ancestors-with-x-frame-options.sub.html
Assignee | ||
Comment 29•6 months ago
|
||
These tests appear to have been previously failing as we would download
the resources being fetched due to their MIME type, rather than
rendeirng them in-browser, meaning that the reporting would behave
differently.
The change to support arbitrary text/ MIME types appears to have fixed
this, and now the tests pass as expected.
Depends on D212078
Assignee | ||
Updated•6 months ago
|
Comment 30•6 months ago
|
||
Comment 31•6 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d27cc29306db
https://hg.mozilla.org/mozilla-central/rev/bb75ae2ebc94
https://hg.mozilla.org/mozilla-central/rev/b0e051062dfb
Assignee | ||
Comment 33•6 months ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #32)
Is this worth calling out in the Fx128 relnotes?
Yeah, this is probably worth calling out in the release notes.
Assignee | ||
Comment 34•6 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Change to what types of text documents will render within Firefox, rather than being downloaded.
[Affects Firefox for Android]: Yes
[Suggested wording]: Firefox now supports rendering more text/*
file types inline, rather than requiring them to be downloaded to be viewed.
[Links (documentation, blog post, etc)]: N/A
Description
•