Repository navigation
Backport DevTools159 extension permissions and AI file-origin safeguards #115
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
Open
tysonthomas9
wants to merge
5
commits into
codex/chromium158-stable-refresh
Choose a base branch
from
codex/devtools159-security
base: codex/chromium158-stable-refresh
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3352ba2
Backport DevTools159 extension checks and isolate untrusted AI file c…
3e8aca4
Hold159 publication for the final security PR and both parent owner m…
41d8ab6
Merge branch 'codex/chromium158-stable-refresh' into codex/devtools15…
5daa1c0
Record verified159 frontend archive compatibility
d8015e3
Merge branch 'codex/chromium158-stable-refresh' into codex/devtools15…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # DevTools security changes for Chromium 159 | ||
|
|
||
| Reviewed stock DevTools from `047c90eca37c7170d826d72245d5df9281989cf3` | ||
| to Chromium 159.0.8154.13's pinned | ||
| `3d48567555b6795967c376050698efe2bf4f0f98`. The stock delta spans 1,572 files; | ||
| this change carries targeted protections into the older fork while retaining | ||
| Browser Operator's custom AI panel and previous HTML/font-CSS security fixes. | ||
| It does not claim a complete merge of stock DevTools or exhaustive security parity. | ||
|
|
||
| The extension `openResource` API now checks the caller's runtime host policy | ||
| before revealing source code, page resources or network requests. This follows | ||
| the stock implementation, including its distinction between an apparent | ||
| `sourceURL` and the script's actual inspected target. Denied resources return a | ||
| permission error before resource/network lookup. Allowed custom-scheme scripts | ||
| continue to open when their inspected target is permitted. | ||
|
|
||
| Stock 159 also has a newer security-origin framework that this fork does not | ||
| have. The inherited Google FileAgent therefore receives a conservative adapted | ||
| mitigation: only ordinary HTTP(S) network files can share a web origin, and | ||
| scripts additionally require known non-synthetic bindings with matching source | ||
| origins. Source-mapped, synthetic, local, malformed, opaque and unverifiable | ||
| files use a unique identity per file. Provenance is recomputed on every use; | ||
| only the opaque identity is cached. Ambiguous files require separate chats. | ||
|
|
||
| The inherited agent backend now blocks disallowed context before refreshing or | ||
| serializing it and rechecks after asynchronous work and before model requests. | ||
| This protects direct backend calls and provenance changes while the UI awaits | ||
| data. Browser Operator's separate `panels/ai_chat` implementation is unchanged. | ||
|
|
||
| Validation: targeted frontend build with full TypeScript checking passed; | ||
| all 80 tests across ExtensionServer, AiAgent and FileAgent passed in actual | ||
| headless Browser Operator 158 using disposable test profiles. New regressions | ||
| cover denied resource lookups, allowed custom schemes, misleading source URLs, | ||
| per-file opaque identities and origin changes during refresh, enhancement and | ||
| generator suspension. The extension fixture waits for its mock resource tree | ||
| before changing the inspected URL. Targeted ESLint passed. | ||
|
|
||
| These results qualify the frontend changes before compiling 159. They do not | ||
| substitute for testing the final signed 159 ARM64/universal apps, native updater | ||
| or mounted DMGs. Release publication stays held for the matching owner merges. | ||
|
|
||
| This is PR115, stacked on PR114. Its final source tree is the required release | ||
| merge; parent PR114 and build-script PR1 must also be merged by the owner. |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When PR115, PR114, and build-script PR1 are merged but PR116 is not,
require_merged_release()will accept a candidate matching PR115 because it treats this field as the integration merge and never checks PR116. This contradicts the commit's stated final policy that PR116 completes the release source tree and requires an owner merge, allowing the pre-PR116 tree to be published; make PR116 the required merge and retain PR115 among the additional prerequisites.Useful? React with 👍 / 👎.