Bug 412304

Summary: Open with dialog with invalid supported files
Product: [Applications] kdialog Reporter: Ivan Korniux <main>
Component: generalAssignee: Brad Hards <bradh>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description Ivan Korniux 2019-09-25 04:19:48 UTC
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
Comment 1 Kai Uwe Broulik 2019-09-26 06:46:58 UTC
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");
  }