Skip to content

Commit

Permalink
Bug 455086 - Set up windows file associations for .SVG. r=mhowell
Browse files Browse the repository at this point in the history
MANUAL PUSH: This is mhowell manually combining a new contributor's patch stack.

Differential Revision: https://phabricator.services.mozilla.com//D41477

--HG--
extra : source : 7219965f391ab9b548ea0e9305ef5acafd2640d5
extra : amend_source : 9a7c03a5e8a7c6a2ec7ca005cda08336846ec977
  • Loading branch information
preyunk committed Aug 10, 2019
1 parent 3050e35 commit 22701dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions browser/installer/windows/nsis/shared.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@
${AddAssociationIfNoneExist} ".ogv" "FirefoxHTML$5"
${AddAssociationIfNoneExist} ".pdf" "FirefoxHTML$5"
${AddAssociationIfNoneExist} ".webm" "FirefoxHTML$5"
${AddAssociationIfNoneExist} ".svg" "FirefoxHTML$5"

; An empty string is used for the 5th param because FirefoxHTML is not a
; protocol handler
Expand Down Expand Up @@ -533,6 +534,7 @@
WriteRegStr ${RegKey} "$0\Capabilities\FileAssociations" ".shtml" "FirefoxHTML$2"
WriteRegStr ${RegKey} "$0\Capabilities\FileAssociations" ".xht" "FirefoxHTML$2"
WriteRegStr ${RegKey} "$0\Capabilities\FileAssociations" ".xhtml" "FirefoxHTML$2"
WriteRegStr ${RegKey} "$0\Capabilities\FileAssociations" ".svg" "FirefoxHTML$2"

WriteRegStr ${RegKey} "$0\Capabilities\StartMenu" "StartMenuInternet" "$1"

Expand Down
1 change: 1 addition & 0 deletions browser/installer/windows/nsis/uninstaller.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ Section "Uninstall"
${un.RegCleanFileHandler} ".ogv" "FirefoxHTML-$AppUserModelID"
${un.RegCleanFileHandler} ".pdf" "FirefoxHTML-$AppUserModelID"
${un.RegCleanFileHandler} ".webm" "FirefoxHTML-$AppUserModelID"
${un.RegCleanFileHandler} ".svg" "FirefoxHTML-$AppUserModelID"

SetShellVarContext all ; Set SHCTX to HKLM
${un.GetSecondInstallPath} "Software\Mozilla" $R9
Expand Down

0 comments on commit 22701dc

Please sign in to comment.