Closed Bug 800670 Opened 12 years ago Closed 11 years ago

Nothing happens when opening web documents of unsupported MIME type

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

Tracking

(blocking-basecamp:-)

RESOLVED DUPLICATE of bug 830203
blocking-basecamp -

People

(Reporter: kairo, Unassigned)

Details

Attachments

(1 file)

Currently, the only way to save a file from a web page/app is to window.open() a data: URL with the wanted MIME type. So I'm doing this in Lantea Maps (hosted at http://lantea.kairo.at/ and available from the Marketplace), where one of the goals of the app is to record and save GPS tracks for later use in other applications on the PC (e.g. for visualizing your travels, correlate your location with photos taken with a camera, or improving OpenStreetMap by adding streets you traveled).

This works fine on different devices from inside Firefox as well as in the Firefox Webapp Runtime.

On Firefox OS, though, we don't do anything at all when I try to click the "Save" button from the "Track" section in the app to save a GPX file (or the "Dump" button I have for debugging to just dump a JSON of the track). Even in the browser, while the JSON is being opened in a second tab, we do nothing at all when trying to save the GPX via this method (the attached test case shows this when called in the browser).

When a document with an unsupported MIME type is opened, I guess ideally we'd create a Web Activity that allows saving the file to disk in some form (perhaps hand-in-hand with a file manager app or so) - I guess that's post-v1 though.

For v1, I think we should at least show *something* that tells the user that we don't support that type of document.
Per triage: not blocking at this time.  The primary use case where this would become an issue is apps using mime types that aren't known by the system.  We don't expect this to be common in apps, especially since it won't work.
blocking-basecamp: ? → -
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
It's a pity that we forward-dupe an old bug with a testcase to a new bug and the new one is tracking+ while the old one was decided to be blocking- (now, should I say "I told you so"?) ;-)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: