Navigation Menu

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 loading extension with missing manifest #34168

Merged
merged 2 commits into from May 11, 2022

Conversation

codebytere
Copy link
Member

Description of Change

Closes #34163.

Fixes a crash when calling loadExtension on an extension directory that's missing a manifest file. This was happening becuase the loading logic failed with a localized error string here which we didn't properly depend on. To fix this, we properly bundle the strings.

Checklist

Release Notes

Notes: Fixed a crash when calling loadExtension on an extension directory that's missing a manifest file.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/16-x-y labels May 11, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 11, 2022
@codebytere codebytere changed the title fix: crash when loading extension missing manifest fix: crash when loading extension with missing manifest May 11, 2022
@codebytere codebytere force-pushed the fix-malformed-extension-crash branch from f47a308 to 6f8fcc2 Compare May 11, 2022 08:21
electron_paks.gni Outdated Show resolved Hide resolved
Co-authored-by: Robo <hop2deep@gmail.com>
@MarshallOfSound MarshallOfSound merged commit d67532e into main May 11, 2022
@MarshallOfSound MarshallOfSound deleted the fix-malformed-extension-crash branch May 11, 2022 20:41
@release-clerk
Copy link

release-clerk bot commented May 11, 2022

Release Notes Persisted

Fixed a crash when calling loadExtension on an extension directory that's missing a manifest file.

@trop
Copy link
Contributor

trop bot commented May 11, 2022

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

@trop
Copy link
Contributor

trop bot commented May 11, 2022

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

@trop
Copy link
Contributor

trop bot commented May 11, 2022

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

@trop
Copy link
Contributor

trop bot commented May 11, 2022

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

@trop
Copy link
Contributor

trop bot commented May 20, 2022

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

@trop
Copy link
Contributor

trop bot commented May 20, 2022

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

khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* fix: crash when loading extension missing manifest

* Update electron_paks.gni

Co-authored-by: Robo <hop2deep@gmail.com>

Co-authored-by: Robo <hop2deep@gmail.com>
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]: When Attempting to load extension with missing files, Electron Crashes.
4 participants