Repository navigation
script: Use create_a_potential_cors_request_with_claim in htmlmediaelement.rs - #64121
Merged
servo-wpt-sync merged 1 commit intoOct 30, 2026
Merged
Conversation
…ement.rs Signed-off-by: rogerkorantenng <[email protected]>
wpt-pr-bot
approved these changes
Oct 23, 2026
wpt-pr-bot
left a comment
Collaborator
There was a problem hiding this comment.
The review process for this patch is being conducted in the Servo project.
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.
Use
ensure_blob_referenced_by_url_is_kept_aliveto get aUrlWithBlobClaimfor the media element's resource URL infetch_request, then pass it tocreate_a_potential_cors_request_with_claiminstead of the temporarycreate_a_potential_cors_request.Testing: Added
tests/wpt/tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/media-blob-url-revoked.window.js. It loads an<audio>from a blob URL and has three subtests: the URL is never revoked, it is revoked in a microtask after the fetch has started (both should load), and it is revoked beforesrcis set (should fireerrorwithMEDIA_ERR_SRC_NOT_SUPPORTED). All three pass with the fix. They also passed without it in 15 of 15 local runs, because the request reaches the net thread before the revoke does, so this test is regression coverage rather than proof of the fix../mach test-tidyis clean. Try run: https://github.com/rogerkorantenng/servo/actions/runs/39981862598Note: seeks and resumed downloads call
fetch_requestagain and take a new claim, so if the page revokes the URL after the first load, those refetches will still fail. Happy to handle that in a follow-up if wanted.Fixes: Part of #48892
Reviewed in servo/servo#49206