Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Mar 8, 2022

Conversation

codebytere
Copy link
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 in the last 24 hours 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 in the last 24 hours label Feb 22, 2022
shell/browser/ui/inspectable_web_contents.cc Outdated Show resolved Hide resolved
@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
Copy link

release-clerk bot commented Mar 8, 2022

Release Notes Persisted

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

@trop
Copy link
Contributor

trop bot commented Mar 8, 2022

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

@trop
Copy link
Contributor

trop bot commented Mar 8, 2022

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
Copy link
Contributor

trop bot commented Mar 8, 2022

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

@trop
Copy link
Contributor

trop bot commented Mar 16, 2022

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

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