Skip to content

script: Use create_a_potential_cors_request_with_claim in processingoptions.rs - #49074

Merged
jdm merged 1 commit into
servo:mainfrom
rogerkorantenng:processingoptions-blob-claim
Oct 21, 2026
Merged

jdm merged 1 commit into
servo:mainfrom
rogerkorantenng:processingoptions-blob-claim

Conversation

@rogerkorantenng

@rogerkorantenng rogerkorantenng commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Use ensure_blob_referenced_by_url_is_kept_alive to get a UrlWithBlobClaim for the link request URL, then pass it to create_a_potential_cors_request_with_claim instead of the temporary create_a_potential_cors_request.

Testing: Added tests/wpt/tests/preload/link-blob-url-revoked.window.js, which checks that rel=preload and rel=prefetch links to a blob URL fire load even when the URL is revoked after insertion. Without the fix it failed intermittently with the fix all subtests passed in 9 of 9 runs, and ./mach test-tidy and ./mach build --dev are clean. Try Run Results (https://github.com/rogerkorantenng/servo/actions/runs/39331654412)

Fixes: Part of #48892

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#63908) with upstreamable changes.

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#63908) title and body.

1 similar comment
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#63908) title and body.

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work on the test!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 20, 2026
@jdm
jdm added this pull request to the merge queue Oct 20, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 20, 2026
@rogerkorantenng
rogerkorantenng force-pushed the processingoptions-blob-claim branch from 9f103f8 to fcd0271 Compare October 20, 2026 18:04
@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Oct 20, 2026
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#63908).

@rogerkorantenng

Copy link
Copy Markdown
Contributor Author

@jdm conflicts are resolved and the build is passing again. Please re-queue when you get a chance.

@jdm
jdm added this pull request to the merge queue Oct 21, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 21, 2026
Merged via the queue into servo:main with commit 24c74ea Oct 21, 2026
38 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants