Repository navigation
Description
servo/components/script/fetch/fetch.rs
Line 866 in afcc7cb
| pub(crate) fn create_a_potential_cors_request( |
servo/components/script/fetch/fetch.rs
Line 886 in afcc7cb
| pub(crate) fn create_a_potential_cors_request_with_claim( |
This is the same as #48890 but with another layer of abstraction. We need to call ensure_blob_referenced_by_url_is_kept_alive on a URL to obtain a URL with a blob claim token before we can call create_a_potential_cors_request_with_claim.
To work on this, please leave a comment claiming one of the unclaimed files, then make the fix in that file, then run the full WPT testsuite in your github fork. If there are no changes to test results, leave a comment here and we can discuss how to write a new test for the feature.
Fixing these will help us make progress on #25226. We won't assign this issue to a particular person since it can be worked on in parallel.
- components/script/dom/servoparser/prefetch.rs (no test required) (@brelmah)
- components/script/dom/eventsource.rs (script: Keep blob URLs alive when creating CORS requests in EventSource #48920)
- components/script/dom/html/embedded_content/htmlmediaelement.rs
- components/script/css/stylesheet_loader.rs (script: Keep blob URLs alive when creating CORS requests in
components/script/css/stylesheet_loader.rs#48995) - components/script/dom/html/document_metadata/processingoptions.rs (script: Use create_a_potential_cors_request_with_claim in processingoptions.rs #49074)
- components/script/dom/reporting/reportingendpoint.rs (no test required) (script: Use create_a_potential_cors_request_with_claim in reportingendpoint.rs #48989)
- components/script/dom/security/cspviolationreporttask.rs (no test required) (script: Use create_a_potential_cors_request_with_claim in cspviolationreporttask.rs #48990)
- components/script/dom/serviceworker/notification.rs (@MohamedAli00949)
- components/script/dom/html/scripting/htmlscriptelement.rs (@MohamedAli00949)
- components/script/dom/html/embedded_content/htmlimageelement.rs (script: Keep blob URLs alive when creating CORS requests in
components/script/dom/html/embedded_content/htmlimageelement.rs#48993) - components/script/dom/html/embedded_content/htmltrackelement.rs (script: Use create_a_potential_cors_request_with_claim in htmltrackelement.rs #49203)
Activity
servo-highfive commentedon Oct 13, 2026
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in Zulip.
Please read and follow our AI Usage Policy:
brelmah commentedon Oct 13, 2026
Hello @jdm let me work on components/script/dom/eventsource.rs
brelmah commentedon Oct 14, 2026
@jdm I finished components/script/dom/eventsource.rs, the WPT test I run did not show any changes in the test results.
Can I work on components/script/dom/servoparser/prefetch.rs next?
jdm commentedon Oct 15, 2026
@brelmah Yes, you can work on prefetch.rs while you address my testing suggestion from #48920. I don't think there's any meaningful test that we can construct for the prefetching code, because I am having trouble imagining how a blob URL could be present in the HTML that is scanned for prefetching.
rogerkorantenng commentedon Oct 17, 2026
Hi @jdm I would like to work on components/script/dom/reporting/reportingendpoint.rs
rogerkorantenng commentedon Oct 17, 2026
I would also work on components/script/dom/security/cspviolationreporttask.rs
elomscansio commentedon Oct 17, 2026
Hi @jdm I'm picking up
components/script/dom/html/embedded_content/htmlimageelement.rsDo I need to create test for it too
elomscansio commentedon Oct 17, 2026
While waiting on #48993 I'm working on
components/script/css/stylesheet_loader.rsjdm commentedon Oct 18, 2026
If the changes do not cause any existing tests to change results, yes.
script: Use create_a_potential_cors_request_with_claim in cspviolatio…
rogerkorantenng commentedon Oct 19, 2026
@jdm I will take on components/script/dom/html/document_metadata/processingoptions.rs
brelmah commentedon Oct 20, 2026
@jdm I've completed the EventSource fix and added a WPT test file (tests/wpt/tests/eventsource/eventsource-blob-url.html) that covers:
The test ensures that blob URLs are properly kept alive during EventSource connections. Ready for review!
rogerkorantenng commentedon Oct 20, 2026
@jdm I will take on components/script/dom/html/embedded_content/htmltrackelement.rs
script: Use create_a_potential_cors_request_with_claim in processingo…
script: Use create_a_potential_cors_request_with_claim in reportingen…
slimfatima commentedon Oct 23, 2026
Good afternoon pls would love to contribute to this project
rogerkorantenng commentedon Oct 23, 2026
@jdm I will take on components/script/dom/html/embedded_content/htmlmediaelement.rs next
script: Use create_a_potential_cors_request_with_claim in htmlmediael…
script: Use create_a_potential_cors_request_with_claim in htmltrackel…
MohamedAli00949 commentedon Nov 5, 2026
I am working on:
components/script/dom/serviceworker/notification.rscomponents/script/dom/html/scripting/htmlscriptelement.rsMohamedAli00949 commentedon Nov 7, 2026
While reviewing
components/script/dom/html/scripting/htmlscriptelement.rs, I have found thatensure_blob_referenced_by_url_is_kept_alivehas been called.The
UrlWithBlobClaimis used withscript_fetch_request, which usescreate_a_potential_cors_request_with_claim, and also used withfetch_an_external_module_scriptwhich is usingfetch_an_external_module_scriptwhich is using the normalfetchfunction atfetch_a_single_module_script.I think now no need to update
components/script/dom/html/scripting/htmlscriptelement.rs, but there are some test cases that useblobas the script src URL.jdm commentedon Nov 10, 2026
You're right; I think I must have misread the search results.
script: Use create_a_potential_cors_request_with_claim in notificatio…
script: Use create_a_potential_cors_request_with_claim in notificatio…