Bug 412304 - Open with dialog with invalid supported files
Summary: Open with dialog with invalid supported files
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kdialog
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Brad Hards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-25 04:19 UTC by Ivan Korniux
Modified: 2019-09-26 06:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (46.36 KB, image/png)
2019-09-25 04:19 UTC, Ivan Korniux
Details

Note You need to log in before you can comment on or make changes to this bug.
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");
  }