Closed Bug 223333 Opened 21 years ago Closed 21 years ago

Create sensible default mimeTypes.rdf to automate opening of common file types

Categories

(Toolkit :: Downloads API, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.6

People

(Reporter: bugs, Assigned: bugs)

Details

We want to automate the task of downloading and opening certain common file
types - as well as giving better pretty display names to certain file type
handlers (e.g. currently we list "CompressedFolder" as the default handler for
ZIP files on Windows XP, we'd rather customize that to list "Windows Explorer"
or some such). Also, we want to create some defaults for Mac - e.g. default
extract to desktop in Stuffit Expander etc as is the norm on that platform. This
bug is for creating default mimeTypes.rdf files for Windows, Mac and Linux for
common file types. The work to be done is:

1) Identify the common file types for each platform
2) Identify the best default action
3) Create the defaults files.
-> me, 0.8
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → Firebird0.8
Windows: 

All of these formats should have "default" handlers in mimeTypes.rdf set up to
auto-open the file in the "system default" application. 

- Microsoft Office Documents:
  - Microsoft Word (.doc, .rtf)
  - Microsoft Excel (.xls, .xlw)
  - Microsoft Powerpoint (.ppt)
- Video formats
  - Video for Windows (.avi)
  - Quicktime (.mov)
  - Windows Media (.wmv)
  - Windows Media streaming (.asx/.asf)
  - MPEG (.mpg, .mpeg)
  - Real (.rm, .ram)
- Audio formats
  - Windows Audio (.wav)
  - MP3 (.mp3)
  - Real (.rm, .ram)
  - Windows Media (.wma)
  - Windows Media streaming (.asx/.asf)
  - Apple iTunes (.aac)

I'm going to leave .zip files with a prompt because CompressedFolder only exists
on Windows XP, and some people expect to download zip files on Windows (MacOS X
users expected compressed files to be expanded to the desktop). We can introduce
handling to extract zip files automatically to folders on the desktop but that's
somewhat risky and potentially annoying, so leaving the prompt for zip is good
enough for 1.0. 

What else do we need?
Ben,

That looks good, as most problems are posed by .wmv and .asf files, at least in
my experience.  However, I would recommend associating .pdf files with Acrobat
Reader because I have hit several sites that don't send the correct MIME type on
PDF files, and Acrobat is almost ubiquitous on Windows systems.

This will be a huge help for Windows users, as so many hosting providers do not
correctly configure their web servers to send the correct MIME types.  Thanks
for all the great work.
I added PDF as well. 

I've checked in a first cut for common windows and mac file formats. Marking FIXED. 
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
The mac file was identical to the windows one, except I added auto-open handlers
for Stuffit Expander (sit), Zip (zip), and compressed disk images (.gz) as well. 
Could we add DMG (disk image) files for Mac?
not that i care but all the office formats and stuffit are risks for viruses.
Why no Zip on Windows?
I really like the idea of having a better default mimtypes.rdf so that files are
opened with the appropriate programs but I don't agree with Firebird
automatically opening these file types.  I know if I am in the minority, I can
just go to the prefs and remove the associations but I think the user should
still be presented with a dialog and be given the choice to "automatically
perform this action" if desired.
With the exception of the Office file types, all of the file types listed
automatically open in the standalone app/or with a plugin when the server sends
the correct MIME type.  This is only to help for those sites that don't send the
correct MIME type.
Chances are, if a user downloads a Office file, they want to save it to the
disk, not just open it from the cache.  Besides, opening up a .doc document is
just like opening up a binary file: the risk of virii is just too great.
All look good Ben, I might add if this fixes FB's issues with WMV files that
would be great. They are almost never picked up, and FB attempts to display them
as text.
Re  Comment #12 , I can confirm this, on build 20031208 with a new profile and
no extensions, WMV files still display as text ( even with media player plugin
installed)
I'd also add bit torrents to this list; FB often has trouble working out what a
.torrent file is, displaying it as text rather than opening a download dialogue
window. 
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.