mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Bug 1866039 - Add .heic to supported accept="image/*" types r=extension-reviewers,emilio,robwu
Differential Revision: https://phabricator.services.mozilla.com/D196530
This commit is contained in:
parent
f53264b153
commit
b90fc3f00e
@ -81,7 +81,7 @@ var MockFilePicker = SpecialPowers.MockFilePicker;
|
||||
MockFilePicker.init(window);
|
||||
|
||||
// The following lists are from toolkit/content/filepicker.properties which is used by filePicker
|
||||
var imageExtensionList = "*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp; *.ico; *.svg; *.svgz; *.tif; *.tiff; *.ai; *.drw; *.pct; *.psp; *.xcf; *.psd; *.raw; *.webp"
|
||||
var imageExtensionList = "*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp; *.ico; *.svg; *.svgz; *.tif; *.tiff; *.ai; *.drw; *.pct; *.psp; *.xcf; *.psd; *.raw; *.webp; *.heic"
|
||||
|
||||
var audioExtensionList = "*.aac; *.aif; *.flac; *.iff; *.m4a; *.m4b; *.mid; *.midi; *.mp3; *.mpa; *.mpc; *.oga; *.ogg; *.opus; *.ra; *.ram; *.snd; *.wav; *.wma"
|
||||
|
||||
|
@ -103,6 +103,7 @@ const FILTER_IMAGES_EXTENSIONS = [
|
||||
"psd",
|
||||
"raw",
|
||||
"webp",
|
||||
"heic",
|
||||
];
|
||||
|
||||
const FILTER_XML_EXTENSIONS = ["xml"];
|
||||
|
@ -106,6 +106,10 @@ add_task(async function testDownload_webp_Images() {
|
||||
await testAppliedFilters(".webp", Ci.nsIFilePicker.filterImages, 2);
|
||||
});
|
||||
|
||||
add_task(async function testDownload_heic_Images() {
|
||||
await testAppliedFilters(".heic", Ci.nsIFilePicker.filterImages, 2);
|
||||
});
|
||||
|
||||
add_task(async function testDownload_xml_XML() {
|
||||
await testAppliedFilters(".xml", Ci.nsIFilePicker.filterXML, 2);
|
||||
});
|
||||
|
@ -5,7 +5,7 @@
|
||||
allFilter=*
|
||||
htmlFilter=*.html; *.htm; *.shtml; *.xhtml
|
||||
textFilter=*.txt; *.text
|
||||
imageFilter=*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp; *.ico; *.svg; *.svgz; *.tif; *.tiff; *.ai; *.drw; *.pct; *.psp; *.xcf; *.psd; *.raw; *.webp
|
||||
imageFilter=*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp; *.ico; *.svg; *.svgz; *.tif; *.tiff; *.ai; *.drw; *.pct; *.psp; *.xcf; *.psd; *.raw; *.webp; *.heic
|
||||
xmlFilter=*.xml
|
||||
xulFilter=*.xul
|
||||
audioFilter=*.aac; *.aif; *.flac; *.iff; *.m4a; *.m4b; *.mid; *.midi; *.mp3; *.mpa; *.mpc; *.oga; *.ogg; *.opus; *.ra; *.ram; *.snd; *.wav; *.wma
|
||||
|
@ -37,7 +37,7 @@ interface nsIFilePicker : nsISupports
|
||||
// *.png; *.bmp; *.ico; *.svg;
|
||||
// *.svgz; *.tif; *.tiff; *.ai;
|
||||
// *.drw; *.pct; *.psp; *.xcf;
|
||||
// *.psd; *.raw; *.webp
|
||||
// *.psd; *.raw; *.webp; *.heic
|
||||
const long filterXML = 0x010; // *.xml
|
||||
const long filterXUL = 0x020; // *.xul
|
||||
const long filterApps = 0x040; // Applications (per-platform implementation)
|
||||
|
Loading…
x
Reference in New Issue
Block a user