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

RESOLVED FIXED in mozilla16

Status

()

Core
General
--
enhancement
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: Dan Wolff, Assigned: MattN)

Tracking

Trunk
mozilla16
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
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

6 years ago
Version: unspecified → Trunk

Comment 1

6 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!
(Reporter)

Comment 2

6 years ago
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
(Reporter)

Comment 3

6 years ago
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

6 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 4

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

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
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+
https://hg.mozilla.org/integration/mozilla-inbound/rev/a138ec3bdb65
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/a138ec3bdb65
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.