Skip to content

fix: file-only picker incorrectly allowing some directories#48198

Merged
jkleinsc merged 1 commit intomainfrom
fix-file-picker-directory
Aug 29, 2025
Merged

fix: file-only picker incorrectly allowing some directories#48198
jkleinsc merged 1 commit intomainfrom
fix-file-picker-directory

Conversation

@codebytere
Copy link
Copy Markdown
Member

Description of Change

Closes #48081.
Refs CL:6867298

Backports upstream CL to fix an issue where a file-only picker incorrectly allowed some directories.

Checklist

Release Notes

Notes: fix an issue where a file-only picker incorrectly allowed some directories.

@codebytere codebytere added the semver/patch backwards-compatible bug fixes label Aug 28, 2025
@codebytere codebytere requested a review from a team as a code owner August 28, 2025 08:07
@codebytere codebytere added target/36-x-y PR should also be added to the "36-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. labels Aug 28, 2025
@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Aug 28, 2025
@jkleinsc jkleinsc merged commit 828fd59 into main Aug 29, 2025
112 of 114 checks passed
@jkleinsc jkleinsc deleted the fix-file-picker-directory branch August 29, 2025 17:14
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Aug 29, 2025

Release Notes Persisted

fix an issue where a file-only picker incorrectly allowed some directories.

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 29, 2025

I have automatically backported this PR to "36-x-y", please check out #48229

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 29, 2025

I have automatically backported this PR to "37-x-y", please check out #48230

@trop trop bot removed the target/36-x-y PR should also be added to the "36-x-y" branch. label Aug 29, 2025
@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 29, 2025

I have automatically backported this PR to "38-x-y", please check out #48231

@trop trop bot added in-flight/37-x-y in-flight/38-x-y merged/38-x-y PR was merged to the "38-x-y" branch. and removed target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. in-flight/38-x-y labels Aug 29, 2025
@trop trop bot removed the in-flight/37-x-y label Sep 8, 2025
@trop trop bot added merged/37-x-y PR was merged to the "37-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. and removed in-flight/36-x-y labels Sep 8, 2025
dodolalorc pushed a commit to dodolalorc/electron that referenced this pull request Sep 11, 2025
@defunctzombie
Copy link
Copy Markdown

It seems this does not actually prevent the selecting of the directories and only prevents returning them to javascript as a "successful" selection. Instead the user is still able to select the file, click "open", and then nothing happens because from the perspective of the JS code the user did not select any files.

kigh-ota pushed a commit to kigh-ota/electron that referenced this pull request Sep 30, 2025
nilayarya pushed a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
nilayarya added a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
nilayarya added a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/36-x-y PR was merged to the "36-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. merged/38-x-y PR was merged to the "38-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File picker allows selecting directories if their name includes a file extension

3 participants