Skip to content

[Connection-Allowlist] Enforce for cross-origin document prefetch#59919

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-f62053cc59
May 16, 2026
Merged

[Connection-Allowlist] Enforce for cross-origin document prefetch#59919
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-f62053cc59

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

Enforce by passing the network restriction id to
URLLoaderFactoryParamsHelper::CreateForPrefetch.

The param is used by CrossOriginPrefetchLoaderFactory, which is for
<link> prefetch that:

  • is cross-origin
  • having attribute as="document"

Note: Browser test is not added for header triggered prefetch because
crbug.com/40752428 makes the test flaky. The WPT that also uses header
triggered prefetch somehow does not flake in try bots.

Bug: 447954811, 507078585
Change-Id: I31b41b063c75026b52c28a1dbfb04f58deb10a90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7832782
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Xiaochen Zhou <xiaochenzh@chromium.org>
Reviewed-by: Andrew Verge <averge@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1631576}

Enforce by passing the network restriction id to
URLLoaderFactoryParamsHelper::CreateForPrefetch.

The param is used by CrossOriginPrefetchLoaderFactory, which is for
<link> prefetch that:
- is cross-origin
- having attribute `as="document"`

Note: Browser test is not added for header triggered prefetch because
crbug.com/40752428 makes the test flaky. The WPT that also uses header
triggered prefetch somehow does not flake in try bots.

Bug: 447954811, 507078585
Change-Id: I31b41b063c75026b52c28a1dbfb04f58deb10a90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7832782
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Xiaochen Zhou <xiaochenzh@chromium.org>
Reviewed-by: Andrew Verge <averge@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1631576}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 04ab86b into master May 16, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-f62053cc59 branch May 16, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants