Skip to content

fix: stack traces in non-Node.js contexts#26820

Merged
codebytere merged 1 commit intomasterfrom
fix-error-stack-renderer
Dec 9, 2020
Merged

fix: stack traces in non-Node.js contexts#26820
codebytere merged 1 commit intomasterfrom
fix-error-stack-renderer

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 recently label Dec 3, 2020
@codebytere codebytere added the semver/patch backwards-compatible bug fixes label Dec 3, 2020
@codebytere codebytere force-pushed the fix-error-stack-renderer branch from e5744b7 to 3815472 Compare December 3, 2020 18:53
@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 recently label Dec 4, 2020
@codebytere codebytere force-pushed the fix-error-stack-renderer branch from 3815472 to 2defa24 Compare December 8, 2020 01:06
@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