Closed
Bug 639362
Opened 14 years ago
Closed 12 years ago
Files with MIME-type text/cache-manifest should display in-browser instead of being downloaded
Categories
(Core :: General, enhancement)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: 326374, Assigned: MattN)
References
()
Details
Attachments
(1 file)
7.63 KB,
patch
|
MattN
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0b12) Gecko/20100101 Firefox/4.0b12
Build Identifier: Mozilla/5.0 (X11; Linux i686; rv:2.0b12) Gecko/20100101 Firefox/4.0b12
Simply handle text/cache-manifest files the same way as text/plain.
Reproducible: Always
Updated•14 years ago
|
Version: unspecified → Trunk
Comment 1•14 years ago
|
||
Mozilla/5.0 (X11; Linux i686; rv:2.0b13pre) Gecko/20110309 Firefox/4.0b13pre
Dan, can you please provide some clear steps to reproduce this issue.
Also, maybe provide a testcase in order for us to use and check the bug you've reported.
Thanks!
I'm sorry. I honestly thought it was very self-explanatory.
This is a feature request. As such, I've also changed the platform to "all" since this is by design, and not a bug.
This MIME-type is part of the new HTML specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#writing-cache-manifests
> Manifests must be served using the text/cache-manifest MIME type.
Steps to reproduce:
* Go to http://developers.whatwg.org/offline.manifest
Actual result:
A save dialog is shown, prompting the user to download the file or open it with some local application.
Expected result:
The text of that document is shown.
OS: Linux → All
Hardware: x86 → All
Summary: Files with text/cache-manifest should display in-browser instead of being downloaded → Files with MIME-type text/cache-manifest should display in-browser instead of being downloaded
Additionnally, both Opera and Chrome display the text of such files directly in the browser, handling them very much the same way as text/plain.
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•13 years ago
|
||
As a developer, I think it's indeed really convenient to display the manifest file directly in the browser (say for debugging purpose).
As of Firefox 11, the situation has not changed.
Will it be implemented eventually ?
Or should the issue be closed ?
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mnoorenberghe+bmo
Status: NEW → ASSIGNED
Component: File Handling → General
Product: Firefox → Core
Assignee | ||
Comment 5•12 years ago
|
||
Here is a patch making the same changes as were made for JSON in bug 667533 plus adding the type to nsHTMLDocument::StartDocumentLoad and actually adding the test to the Makefile.
Pushed to try: http://tbpl.mozilla.org/?tree=Try&rev=a87ecf6aad7a
Attachment #642165 -
Flags: review?(bzbarsky)
Comment 6•12 years ago
|
||
Comment on attachment 642165 [details] [diff] [review]
v.1 Based on patch to bug 667533 for JSON
r=me
Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 642165 [details] [diff] [review]
v.1 Based on patch to bug 667533 for JSON
Try run: https://tbpl.mozilla.org/?tree=Try&rev=a87ecf6aad7a
Attachment #642165 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Flags: in-testsuite+
Comment 9•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in
before you can comment on or make changes to this bug.
Description
•