Skip to content

fix: crash when showing item in folder on DevTools - #33024

Merged
jkleinsc merged 1 commit into
mainfrom
fix-devtools-showiteminddolder
Mar 8, 2022
Merged

jkleinsc merged 1 commit into
mainfrom
fix-devtools-showiteminddolder

Conversation

@codebytere

Copy link
Copy Markdown
Member

Description of Change

Closes #33023.

Fixes an issue where clicking "Open in Containing Folder" in the Sources tab in Devtools caused a crash.

We were incorrectly passing an empty callback instead of a callback which calls ShowItemInFolder. Chromium's call also opens the directory containing the file in their call to platform_util::OpenItem, so we correct that on our end (since we don't pass an option to differentiate) by passing the file's parent directory to OpenPath

Checklist

Release Notes

Notes: Fixed an issue where clicking "Open in Containing Folder" in the Sources tab in Devtools caused a crash.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/16-x-y labels Feb 21, 2022
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Feb 21, 2022
@codebytere codebytere changed the title fix: crash when showin item in folder on DevTools fix: crash when showing item in folder on DevTools Feb 21, 2022
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Feb 22, 2022
@codebytere
codebytere force-pushed the fix-devtools-showiteminddolder branch from 0344393 to 5adf590 Compare February 23, 2022 11:34
@codebytere
codebytere force-pushed the fix-devtools-showiteminddolder branch from 5adf590 to 202569d Compare February 28, 2022 19:44
@jkleinsc
jkleinsc merged commit 076bc58 into main Mar 8, 2022
@jkleinsc
jkleinsc deleted the fix-devtools-showiteminddolder branch March 8, 2022 19:40
@release-clerk

release-clerk Bot commented Mar 8, 2022

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where clicking "Open in Containing Folder" in the Sources tab in Devtools caused a crash.

@trop

trop Bot commented Mar 8, 2022

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "16-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Mar 8, 2022

Copy link
Copy Markdown
Contributor

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

@trop trop Bot added the in-flight/17-x-y label Mar 8, 2022
@trop

trop Bot commented Mar 8, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 16, 2022

Copy link
Copy Markdown
Contributor

@codebytere has manually backported this PR to "16-x-y", please check out #33313

bavulapati pushed a commit to bavulapati/electron that referenced this pull request Apr 29, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Devtools Sources "Open in Containing Folder" crashes

3 participants