Closed
Bug 250287
Opened 21 years ago
Closed 17 years ago
Unquoted path to Firefox executable written to HKCR\FirefoxHTML\shell.
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: slaughter, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040704 Firefox/0.9.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040704 Firefox/0.9.0+
When Firefox writes the default value to the registry key
[HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command], it does so without quotes.
On some systems it uses a short path, but when there is no short path the full
path will be used unquoted, even though spaces can appear. This means, for the
default installation path, that something called C:\Program.exe or C:\Program
Files\Mozilla.bat, etc., would be executed before C:\Program Files\Mozilla
Firefox\firefox.exe. This has minor security implications (hence the restriction
on regular users writing to these locations under modern versions of Windows).
Regardless of the security implications, there are bugs here. I'm bothered that
the short path is written to the registry by default. It also pops up in error
messages (like those due to the annoying default-registration bugs). The
registration as default browser doesn't seem to report errors, by the way, even
when ran without admin permissions (where it didn't work properly). Probably,
the whole of the registration code should be reviewed by a professional Windows
developer.
Reproducible: Always
Steps to Reproduce:
1. Log on as a user that's a member of 'Administrators' or 'Power Users' or has
appropriate permissions.
2. Delete the HKCR\FirefoxHTML registry key, if it exists (make a backup, yadda
yadda - other apps get here, so maybe restore it later).
3. Set IE as default browser to subvert the Fx check, then set Fx as the default
browser.
Actual Results:
Unquoted filenames are written to the values under the key mentioned above, such
as the icon path and the shell\open\command key (and print, etc?).
Expected Results:
Nothing left to chance.
As mentioned before, the short file name seems to be written to the registry on
some systems. I haven't investigated this (it could be caused by something the
installer does, or something the OS does, etc.), but that doesn't seem right.
Short filenames can be disabled under XP by running:
fsutil behavior set disable8dot3 1
or by setting the appropriate reg key (see the KB). The regkey exists on Win2k
at least. Read about this before changing anything.
Comment 1•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8b4) Gecko/20050905
Firefox/1.0+ ID:2005090518
The above nightly of Firefox writes this registry key using the unquoted short
path. I'm confirming this, but with the caveat that the developers may not view
it as a bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 2•20 years ago
|
||
> The above nightly of Firefox writes this registry key using the unquoted short
> path. I'm confirming this, but with the caveat that the developers may not view
> it as a bug.
In case it makes a difference, the same bug stops the Automatic Update from
working when the filesystem doesn't support short paths. Firefox announces that
it will restart, but then simply exits. When it's next manually started, it
declares that the update failed. This only happens when it's installed in a path
containing spaces on a filesystem when short names are not enabled.
Updated•18 years ago
|
Assignee: bugs → nobody
Comment 3•18 years ago
|
||
On the trunk we are using long file names now so this should be fixed at least on the trunk.
Comment 4•17 years ago
|
||
Resolving -> WONTFIX. We write unquoted short paths on branch and quoted long paths on trunk when required (e.g. icon long paths are not suppose to be quoted C:\Program Files\Mozilla Firefox\firefox.exe,1). Reporter, if you disagree with this decision please reopen.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Comment 5•17 years ago
|
||
(In reply to comment #4)
> Resolving -> WONTFIX. We write unquoted short paths on branch and quoted long
> paths on trunk when required (e.g. icon long paths are not suppose to be quoted
If the trunk writes quoted long paths where necessary (i.e., the value under shell\open\command), as it appears to, then this has been fixed (per comment 3), in which case, thanks.
Writing unquoted short paths is a problem when short paths don't exist (via "fsutil behavior set disable8dot3 1"), so the branch is still broken. Having said that, it probably isn't worth the additional effort to support it there, so I don't see a need to re-open this.
You need to log in
before you can comment on or make changes to this bug.
Description
•