Skip to content

chore: rebase the custom-scheme code cache patch onto upstream's checks - #53746

Merged
codebytere merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-chore-rebase-the-custom-scheme-code-cache-patch-onto-upstream-s-checks-1788891078025
Sep 8, 2026
Merged

codebytere merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-chore-rebase-the-custom-scheme-code-cache-patch-onto-upstream-s-checks-1788891078025

Conversation

@trop

@trop trop Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Backport of #53676

See that PR for details.

Notes: Fixed V8 code caching for https scripts loaded by file:// and custom-scheme pages.

feat_allow_code_cache_in_custom_schemes.patch rewrote
CheckSecurityForAccessingCodeCacheData and the two DCHECK helpers in
generated_code_cache.cc wholesale, and in doing so dropped the
CommonSchemeRegistry::IsExtensionScheme branches Chromium added later and
refused http(s) script caching for any process not locked to http(s) or an
embedder scheme (file:// pages, standard custom schemes without codeCache).
Keep upstream's logic verbatim and only add the embedder-scheme cases via a
new url::IsCodeCacheScheme() helper.

Co-authored-by: Shelley Vohr <[email protected]>
@trop
trop Bot requested a review from a team as a code owner September 8, 2026 18:11
@trop
trop Bot requested a review from codebytere September 8, 2026 18:11
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 8, 2026
@codebytere
codebytere merged commit c3a3117 into 45-x-y Sep 8, 2026
96 checks passed
@release-clerk

release-clerk Bot commented Sep 8, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed V8 code caching for https scripts loaded by file:// and custom-scheme pages.

@codebytere
codebytere deleted the trop/45-x-y-bp-chore-rebase-the-custom-scheme-code-cache-patch-onto-upstream-s-checks-1788891078025 branch September 8, 2026 20:50
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.

3 participants