Add JXR support to the browser

Can be enabled/disabled at runtime by toggling the 'media.jxr.enabled'
pref (disabled by default).

Two additional prefs are provided for testing purposes:
'media.jxr.autoaccept', and 'media.jxr.advertised_mime_type'
See comments in all.js for information on what these do.

This commit includes the MS OpenTech implementation of the decoder on
the browser side with some fixes applied; see the development in Pale
Moon GitGub issue #105 or my comments in the source code for more
information.
This commit is contained in:
rhinoduck
2017-02-08 07:08:08 +01:00
committed by roytam1
parent a34855657d
commit 7b7ccd5dce
13 changed files with 3224 additions and 0 deletions
+4
View File
@@ -69,6 +69,10 @@ static const mozilla::Module::ContractIDEntry kImageContracts[] = {
static const mozilla::Module::CategoryEntry kImageCategories[] = {
{ "Goanna-Content-Viewers", IMAGE_GIF, "@mozilla.org/content/document-loader-factory;1" },
{ "Goanna-Content-Viewers", IMAGE_JPEG, "@mozilla.org/content/document-loader-factory;1" },
#ifdef MOZ_JXR
{ "Goanna-Content-Viewers", IMAGE_JXR, "@mozilla.org/content/document-loader-factory;1" },
{ "Goanna-Content-Viewers", IMAGE_MS_PHOTO, "@mozilla.org/content/document-loader-factory;1" },
#endif
{ "Goanna-Content-Viewers", IMAGE_PJPEG, "@mozilla.org/content/document-loader-factory;1" },
{ "Goanna-Content-Viewers", IMAGE_JPG, "@mozilla.org/content/document-loader-factory;1" },
{ "Goanna-Content-Viewers", IMAGE_ICO, "@mozilla.org/content/document-loader-factory;1" },