Skip to content

fix: main process crashes from WebUI host matching, worker AI bindings, extension background page media and serial port revocation - #53325

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-main-process-crashes-from-webui-host-matching-worker-ai-bindings-extension-background-page-media-and-serial-port-revocation-1788190253356
Aug 31, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-main-process-crashes-from-webui-host-matching-worker-ai-bindings-extension-background-page-media-and-serial-port-revocation-1788190253356

Conversation

@trop

@trop trop Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Backport of #53305

See that PR for details.

Notes: Fixed main process crashes when navigating to http://accessibility/ or http://devtools/, when using the LanguageModel API from a Worker with a local AI handler registered, when an extension background page used navigator.mediaDevices, and when calling SerialPort.forget() for a disconnected device.

…s, extension background page media and serial port revocation

- Only treat chrome://accessibility and devtools://devtools (or chrome://)
  as WebUI URLs; matching on host alone made an ordinary navigation to
  http://accessibility/ create WebUI bindings for a non-WebUI process.
- Don't route LanguageModel requests that have no live document (workers)
  to the local AI handler; report them as unavailable instead of
  dereferencing a null frame.
- Create the WebContentsPermissionHelper for every WebContents that
  api::WebContents becomes the delegate of, including extension background
  pages, so media/pointer-lock permission checks have a helper to use.
- Return early from SerialChooserContext::RevokePortPermissionWebInitiated
  when the port is no longer known instead of dereferencing end().

Co-authored-by: Sam Attard <[email protected]>
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) August 31, 2026 15:50
@MarshallOfSound
MarshallOfSound merged commit f705c12 into 45-x-y Aug 31, 2026
95 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-fix-main-process-crashes-from-webui-host-matching-worker-ai-bindings-extension-background-page-media-and-serial-port-revocation-1788190253356 branch August 31, 2026 17:07
@release-clerk

release-clerk Bot commented Aug 31, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed main process crashes when navigating to http://accessibility/ or http://devtools/, when using the LanguageModel API from a Worker with a local AI handler registered, when an extension background page used navigator.mediaDevices, and when calling SerialPort.forget() for a disconnected device.

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