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: nodeIntegrationInWorker fails to boot in AudioWorklets #37041

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

nornagon
Copy link
Member

@nornagon nornagon commented Jan 26, 2023

Description of Change

When 'nodeIntegrationInWorker: true', worker_init is loaded in worker scopes.
That script assumed that self was always available, which isn't the case in
AudioWorkletGlobalScope.

Found while investigating #37038, but this does not address that issue.

Checklist

Release Notes

Notes: Fixed audio worklet scripts failing to run when nodeIntegrationInWorker: true.

@nornagon nornagon added semver/patch backwards-compatible bug fixes target/21-x-y PR should also be added to the "21-x-y" branch. target/22-x-y PR should also be added to the "22-x-y" branch. target/23-x-y PR should also be added to the "23-x-y" branch. labels Jan 26, 2023
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 26, 2023
@nornagon nornagon changed the title fix: nodeIntegrationInWorker in AudioWorklets fix: nodeIntegrationInWorker fails to boot in AudioWorklets Jan 27, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 27, 2023
@nornagon nornagon merged commit 6aa7e27 into main Feb 2, 2023
@nornagon nornagon deleted the audio-worklet-init branch February 2, 2023 00:03
@release-clerk
Copy link

release-clerk bot commented Feb 2, 2023

Release Notes Persisted

Fixed audio worklet scripts failing to run when nodeIntegrationInWorker: true.

@trop
Copy link
Contributor

trop bot commented Feb 2, 2023

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

@trop trop bot added in-flight/22-x-y and removed target/22-x-y PR should also be added to the "22-x-y" branch. labels Feb 2, 2023
@trop
Copy link
Contributor

trop bot commented Feb 2, 2023

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

@trop
Copy link
Contributor

trop bot commented Feb 2, 2023

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

@trop trop bot added in-flight/21-x-y merged/23-x-y PR was merged to the "23-x-y" branch. merged/22-x-y PR was merged to the "22-x-y" branch. and removed target/21-x-y PR should also be added to the "21-x-y" branch. target/23-x-y PR should also be added to the "23-x-y" branch. in-flight/23-x-y labels Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/21-x-y PR was merged to the "21-x-y" branch. merged/22-x-y PR was merged to the "22-x-y" branch. merged/23-x-y PR was merged to the "23-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants