Skip to content

Replace all uses of create_a_potential_cors_request with create_a_potential_cors_request_with_claim #48892

Open

Description

@jdm

pub(crate) fn create_a_potential_cors_request(

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.

Activity

  1. added
    E-less-complex
    A-content/script
    B-meta
    on Oct 13, 2026
  2. servo-highfive commented on Oct 13, 2026

    @servo-highfive

    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:

    • You can use AI to help understand the code, make plans, and do code review.
    • You cannot post AI-generated code, comments, or PR descriptions.
  3. brelmah commented on Oct 13, 2026

    @brelmah

    Hello @jdm let me work on components/script/dom/eventsource.rs

  4. brelmah commented on Oct 14, 2026

    @brelmah

    @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?

  5. jdm commented on Oct 15, 2026

    @jdm
    MemberAuthor

    @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.

  6. rogerkorantenng commented on Oct 17, 2026

    @rogerkorantenng
    Contributor

    Hi @jdm I would like to work on components/script/dom/reporting/reportingendpoint.rs

  7. rogerkorantenng commented on Oct 17, 2026

    @rogerkorantenng
    Contributor

    I would also work on components/script/dom/security/cspviolationreporttask.rs

  8. elomscansio commented on Oct 17, 2026

    @elomscansio
    Contributor

    Hi @jdm I'm picking up components/script/dom/html/embedded_content/htmlimageelement.rs
    Do I need to create test for it too

  9. elomscansio commented on Oct 17, 2026

    @elomscansio
    Contributor

    While waiting on #48993 I'm working on components/script/css/stylesheet_loader.rs

  10. jdm commented on Oct 18, 2026

    @jdm
    MemberAuthor

    Hi @jdm I'm picking up components/script/dom/html/embedded_content/htmlimageelement.rs
    Do I need to create test for it too

    If the changes do not cause any existing tests to change results, yes.

  11. rogerkorantenng commented on Oct 19, 2026

    @rogerkorantenng
    Contributor

    @jdm I will take on components/script/dom/html/document_metadata/processingoptions.rs

  12. brelmah commented on Oct 20, 2026

    @brelmah

    @jdm I've completed the EventSource fix and added a WPT test file (tests/wpt/tests/eventsource/eventsource-blob-url.html) that covers:

    • Basic blob URL functionality with EventSource
    • Multiple messages from blob URLs
    • Error handling when blob URLs are revoked
      The test ensures that blob URLs are properly kept alive during EventSource connections. Ready for review!
  13. rogerkorantenng commented on Oct 20, 2026

    @rogerkorantenng
    Contributor

    @jdm I will take on components/script/dom/html/embedded_content/htmltrackelement.rs

  14. slimfatima commented on Oct 23, 2026

    @slimfatima

    Good afternoon pls would love to contribute to this project

  15. rogerkorantenng commented on Oct 23, 2026

    @rogerkorantenng
    Contributor

    @jdm I will take on components/script/dom/html/embedded_content/htmlmediaelement.rs next

  16. MohamedAli00949 commented on Nov 5, 2026

    @MohamedAli00949
    Contributor

    I am working on:

    • components/script/dom/serviceworker/notification.rs
    • components/script/dom/html/scripting/htmlscriptelement.rs
  17. MohamedAli00949 commented on Nov 7, 2026

    @MohamedAli00949
    Contributor

    While reviewing components/script/dom/html/scripting/htmlscriptelement.rs, I have found that ensure_blob_referenced_by_url_is_kept_alive has been called.

    The UrlWithBlobClaim is used with script_fetch_request, which uses create_a_potential_cors_request_with_claim, and also used with fetch_an_external_module_script which is using fetch_an_external_module_script which is using the normal fetch function at fetch_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 use blob as the script src URL.

  18. jdm commented on Nov 10, 2026

    @jdm
    MemberAuthor

    You're right; I think I must have misread the search results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/scriptB-metaE-less-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions