Set up windows file associations for .SVG and .SVGZ when making Firefox the default browser

NEW
Unassigned

Status

()

Firefox
Shell Integration
--
enhancement
9 years ago
2 months ago

People

(Reporter: Duncan Loveday, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [parity-ie])

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

Starting with a PC that has no SVG viewer installed (i.e. no Firefox, ASV, Opera, Safari etc), if I install Firefox then no windows file associations are created to let me double-click a .svg or .svgz file or email attachment.

Reproducible: Always

Steps to Reproduce:
1. On a windows XP PC, Go to My Computer->Tools->Folder Options
2. Scroll down to find the SVG and SVGZ file extensions.
3. Remove the file associations for these two file extensions if they exist.
4. Install Firefox 3.0.1, making it the default browser
5. Go back to My Computer->Tools->Folder Options and scroll down again to find the SVG and SVGZ file extensions.
Actual Results:  
No file associations are created for file extensions .svg or .svgz

Expected Results:  
It would be helpful if file associations were created for these extensions. I can't think of a good reason not to do this where no previous associations exist and there might also be a case for overwriting existing associations if Firefox is being made the default browser.

Whilst this can be done later, the first time a .svg/.svgz is opened - by choosing "Select the program from a list" and navigating to firefox.exe etc, this is an unnecessary burden on the user and also the associations added via this route are not always reliable. The only reliable way I've found is to uninstall and reinstall ASV which associates .svg and .svgz with whatever the current default browser is. Below is the command it created in the association (plus some clever stuff in the DDE pane) - I don't understand all the switches or but the quotes round %1 are important. For example if a .svg is opened as a mail attachment in outlook it gets saved in C:/documents and settings/... which has spaces in it.

"C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -url "%1"
Firefox will not display local .svgz files so it shouldn't set itself as the viewer for them.
(Reporter)

Comment 2

9 years ago
agreed...unless and until it is enhanced to do that.
(In reply to comment #1)
> Firefox will not display local .svgz files so it shouldn't set itself as the
> viewer for them.

Regarding that, I'd say this issue should depend on bug 52282... :-)


Also, this issue is pretty much related with bug 215889 and, in my opinion, should be coordinated with it.
I think this would be useful for the majority of users who don't have other applications to open SVG files.  IE10 does this already BTW so Windows 8 users will be directed there by default.

Installer-related code is here: https://mxr.mozilla.org/mozilla-central/source/browser/installer/windows/nsis/shared.nsh
Status: UNCONFIRMED → NEW
Component: SVG → Shell Integration
Ever confirmed: true
Product: Core → Firefox
Hardware: x86 → All
Whiteboard: [parity-ie]
You need to log in before you can comment on or make changes to this bug.