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: stack traces in non-Node.js contexts #26820

Merged
merged 1 commit into from Dec 9, 2020

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Dec 3, 2020

Description of Change

Closes #26677.

Node.js sets a stack trace handler specific to the context corresponding to the current Environment. When we're running in a non-Node.js context, there will be no correspondent Environment - we therefore need to unset this handler so that Blink falls back to its default handling and displays the correct stacktrace.

Upstreamed at nodejs/node#36447.

Checklist

Release Notes

Notes: Fixed an issue where renderer process stack traces were broken with contextIsolation enabled.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Dec 3, 2020
@codebytere codebytere added the semver/patch backwards-compatible bug fixes label Dec 3, 2020
@MarshallOfSound MarshallOfSound added semver/patch backwards-compatible bug fixes and removed semver/patch backwards-compatible bug fixes labels Dec 3, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Dec 4, 2020
@codebytere codebytere requested a review from a team as a code owner December 8, 2020 01:06
@codebytere codebytere merged commit 76f7214 into master Dec 9, 2020
@release-clerk
Copy link

release-clerk bot commented Dec 9, 2020

Release Notes Persisted

Fixed an issue where renderer process stack traces were broken with contextIsolation enabled.

@codebytere codebytere deleted the fix-error-stack-renderer branch December 9, 2020 19:08
@trop
Copy link
Contributor

trop bot commented Dec 9, 2020

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

@trop
Copy link
Contributor

trop bot commented Dec 9, 2020

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

@trop
Copy link
Contributor

trop bot commented Dec 14, 2020

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

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.

Electron 11 breaks Error stack in a loaded iframe
5 participants