Skip to content

[Bug] showOpenDialog filters aren't working on MacOs #47815

@al-polushkin

Description

@al-polushkin

Preflight Checklist

Electron Version

36.7.1, 36.2.0, 37.2.3

What operating system(s) are you using?

macOS

Operating System Version

macOS Sequoia 15.5

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

36.1.0, 35.2.2

Does the issue also appear in Chromium / Google Chrome?

Yes

Expected Behavior

When calling showOpenDialog() with the option filters: [{ name: "Applications", extensions: ["app"] }], I expect that only app files can be selected.

Actual Behavior

in Electron 36.0.0, the above filter is not applied and it's possible to select anything
Starting from Electron 36.2.0, the above filters is ignored, nothing is passing it, not able to select anything

Testcase Gist URL

https://gist.github.com/al-polushkin/6c104ef3d60119a37fca32e51ef7caff

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions