Mozilla registers 8.3 DOS paths instead of LFN in Windows File Types (mime types)




File Handling
16 years ago
2 years ago


(Reporter: Tom Kaczmarski, Unassigned)


Firefox Tracking Flags

(Not tracked)



(1 attachment)



16 years ago
Mozilla installation registers the shortened mangled paths with Windows causing
the  Windows/Mozilla integration to fail to open files associated with Mozilla,
e.g. HTML files.
Here is an example of the contents of the open action for HTML files under Windows:

When an external program such as a chat client tries to launch a URL it fails. 
However, when I change the path to a non-mangled one:


(aside: the path here needs to be quoted since it contains a space; promiscuous
quoting doesn't hurt anything anyway)

the chat client has no problems launching the URL.

It would be nice if the Installer/Mozilla would register non-mangled paths with
Windows to alleviate such problems.  It's a real pain to go through all the
associations and correct the paths by hand.

This is a Windows specific issue AFAIK.

Comment 1

16 years ago
Created attachment 75119 [details]
screen shot of HTML action showing the mangled path registered with Windows
It's the browser that sets up those items --> law
Assignee: dveditz → law
Component: Installer → XP Apps
Ever confirmed: true

Comment 3

16 years ago
really reassign...
Assignee: law → sgehani
QA Contact: bugzilla → paw

Comment 4

16 years ago
note that we should *not* change the case of the string, nor should we get the short name (which is the complaint by the reporter).

reporter: if you try to run C:\PROGRA~1\MOZILLA.ORG\MOZILLA\MOZILLA.EXE does it work?
Assignee: sgehani → law
Component: XP Apps → File Handling
QA Contact: paw → sairuh

Comment 5

16 years ago
If I run Mozilla by hand using the path it works.
However, some applications launching Mozilla through a system call fail.

Comment 6

16 years ago
We shouldn't be using 8.3 names anywhere...
QA Contact: sairuh → petersen

Comment 7

15 years ago
Same applies to Firebird and Thunderbird:

These are the offending functions:

Which are used in the following places to set the registry values:

There seems to be a bit of duplication among this code.

Note, the registry values that set the icons for File Types and URL Protocol
Handlers seem not to require the LFN path to be quoted.
Summary: Mozilla registers mangled (DOS) paths in Windows File Types (mime types) → Mozilla registers 8.3 DOS paths instead of LFN in Windows File Types (mime types)

Comment 8

15 years ago
This code is also marginally relevant. It sets the icon, which as I mentioned
above doesn't use quoting for LFN:

The only other code in Mozilla which seems to use 8.3 filenames is here:

But it is irrelevant to this particular bug.

Comment 9

12 years ago
*** Bug 322299 has been marked as a duplicate of this bug. ***

Comment 10

12 years ago
Even if the paths are fixed manually, it would be as if you had unregistered TB or FF as the default app. It's no longer recognized, so it'll ask you if you want to make it default. If you click Yes, the paths get mangled again.

As of Thunderbird 1.5 and Firefox, this issue still exists..
Assignee: law → nobody
QA Contact: chrispetersen → file-handling


2 years ago
Component: File Handling → File Handling
Product: Core → Firefox
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.