Skip to content

fix: crash on navigator.usb.requestDevice() in in-memory sessions - #54615

Merged
deepak1556 merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-crash-on-navigator-usb-requestdevice-in-in-memory-sessions-1790840554251
Oct 5, 2026
Merged

deepak1556 merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-crash-on-navigator-usb-requestdevice-in-in-memory-sessions-1790840554251

Conversation

@trop

@trop trop Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Backport of #54608

See that PR for details.

Notes: Fixed a crash on navigator.usb.requestDevice() in in-memory sessions.

UsbChooserContextFactory did not override GetBrowserContextToUse(), so
off-the-record contexts got no UsbChooserContext and the chooser
controller dereferenced null. Give in-memory sessions their own context,
as the HID and serial factories do.

Co-authored-by: Shelley Vohr <[email protected]>
@trop
trop Bot requested a review from codebytere October 1, 2026 07:42
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Oct 1, 2026
@deepak1556
deepak1556 merged commit 9a1097c into 45-x-y Oct 5, 2026
90 checks passed
@release-clerk

release-clerk Bot commented Oct 5, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed a crash on navigator.usb.requestDevice() in in-memory sessions.

@deepak1556
deepak1556 deleted the trop/45-x-y-bp-fix-crash-on-navigator-usb-requestdevice-in-in-memory-sessions-1790840554251 branch October 5, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant