Created attachment 122850 [details] Screenshot SUMMARY In "Open File" dialog from chromium-based browsers with specified accepted types in input[type=file] shows "Undefined" file extensions. STEPS TO REPRODUCE 1. Go to https://interactive-examples.mdn.mozilla.net/pages/tabbed/input-file.html in chromimum-based browser (gecko-based uses GTK) 2. Click on "Choose file" in "Output" 3. Open format filter OBSERVED RESULT "undefined, Image PNG, Image JPEG, undefined" EXPECTED RESULT "Image PNG, Image JPEG" SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 5.16.4 KDE Frameworks Version: 5.61.0 Qt Version: 5.13.0 Kernel Version: 4.19.69-1-MANJARO OS Type: 64-bit Processors: 4 × Intel® Core™ i5-4460 CPU @ 3.20GHz Memory: 15,6 GiB of RAM ADDITIONAL INFORMATION used
According to Chromium source code this looks intentional: // Add the *.* filter, but only if we have added other filters (otherwise it // is implied). It needs to be added last to avoid being picked as the default // filter. if (file_types_.include_all_files && !file_types_.extensions.empty()) { DCHECK(filter_set.find("application/octet-stream") == filter_set.end()); filter_vector.push_back("application/octet-stream"); }