Repository navigation
fix: main process crashes from WebUI host matching, worker AI bindings, extension background page media and serial port revocation - #53325
Merged
Conversation
…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]>
3 tasks done
MarshallOfSound
approved these changes
Aug 31, 2026
MarshallOfSound
enabled auto-merge (squash)
August 31, 2026 15:50
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 Notes Persisted
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #53305
See that PR for details.
Notes: Fixed main process crashes when navigating to
http://accessibility/orhttp://devtools/, when using theLanguageModelAPI from a Worker with a local AI handler registered, when an extension background page usednavigator.mediaDevices, and when callingSerialPort.forget()for a disconnected device.