Closed Bug 639362 Opened 9 years ago Closed 7 years ago

Files with MIME-type text/cache-manifest should display in-browser instead of being downloaded

Categories

(Core :: General, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: 326374, Assigned: MattN)

References

()

Details

Attachments

(1 file)

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
Version: unspecified → Trunk
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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
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: nobody → mnoorenberghe+bmo
Status: NEW → ASSIGNED
Component: File Handling → General
Product: Firefox → Core
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 on attachment 642165 [details] [diff] [review]
v.1 Based on patch to bug 667533 for JSON

r=me
https://hg.mozilla.org/mozilla-central/rev/a138ec3bdb65
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.