Bug 452254 - Register for audio/video .ogg and .pdf file handlers if nothing else has. r=jmathies

This commit is contained in:
Robert Strong 2014-04-24 11:31:56 -07:00
Родитель 54851b2e41
Коммит 313392a942
2 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -430,6 +430,30 @@ FunctionEnd
WriteRegStr SHCTX "$0\.xhtml" "" "FirefoxHTML" WriteRegStr SHCTX "$0\.xhtml" "" "FirefoxHTML"
${EndIf} ${EndIf}
; Only add .oga if it's not present
${CheckIfRegistryKeyExists} "$0" ".oga" $7
${If} $7 == "false"
WriteRegStr SHCTX "$0\.oga" "" "FirefoxHTML"
${EndIf}
; Only add .ogg if it's not present
${CheckIfRegistryKeyExists} "$0" ".ogg" $7
${If} $7 == "false"
WriteRegStr SHCTX "$0\.ogg" "" "FirefoxHTML"
${EndIf}
; Only add .ogv if it's not present
${CheckIfRegistryKeyExists} "$0" ".ogv" $7
${If} $7 == "false"
WriteRegStr SHCTX "$0\.ogv" "" "FirefoxHTML"
${EndIf}
; Only add .pdf if it's not present
${CheckIfRegistryKeyExists} "$0" ".pdf" $7
${If} $7 == "false"
WriteRegStr SHCTX "$0\.pdf" "" "FirefoxHTML"
${EndIf}
; Only add webm if it's not present ; Only add webm if it's not present
${CheckIfRegistryKeyExists} "$0" ".webm" $7 ${CheckIfRegistryKeyExists} "$0" ".webm" $7
${If} $7 == "false" ${If} $7 == "false"

Просмотреть файл

@ -324,6 +324,10 @@ Section "Uninstall"
${un.RegCleanFileHandler} ".shtml" "FirefoxHTML" ${un.RegCleanFileHandler} ".shtml" "FirefoxHTML"
${un.RegCleanFileHandler} ".xht" "FirefoxHTML" ${un.RegCleanFileHandler} ".xht" "FirefoxHTML"
${un.RegCleanFileHandler} ".xhtml" "FirefoxHTML" ${un.RegCleanFileHandler} ".xhtml" "FirefoxHTML"
${un.RegCleanFileHandler} ".oga" "FirefoxHTML"
${un.RegCleanFileHandler} ".ogg" "FirefoxHTML"
${un.RegCleanFileHandler} ".ogv" "FirefoxHTML"
${un.RegCleanFileHandler} ".pdf" "FirefoxHTML"
${un.RegCleanFileHandler} ".webm" "FirefoxHTML" ${un.RegCleanFileHandler} ".webm" "FirefoxHTML"
${EndIf} ${EndIf}