Skip to content

Using nodeIntegrationInWorker: true with a service worker crashes #24715

Description

@lgrahl

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • 9.1.1
    • 10.0.0-beta.4
  • Operating System:
    • Linux x64

Expected Behavior

Don't crash when nodeIntegrationInWorker is true and a service worker is being registered. 🙂

Actual Behavior

A crash occurs once the service worker is attempted to be registered (blank page, DevTools disconnects).

To Reproduce

Attempt to register a service worker with nodeIntegrationInWorker set to true.

$ git clone https://github.com/lgrahl/electron-node-integration-service-worker-crash
$ npm install
$ npm start

Commit lgrahl/electron-node-integration-service-worker-crash@97b14f2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions