Skip to content

Replace HTMLMediaElement::current_src with AtomicRefCell #49050

Closed

Description

@jdm

Per #46049, the way we use DomRefCell types and share them with layout code is easy to misuse. #46757 and #46758 are examples of replacing the DomRefCell with AtomicRefCell for code like this.

We should do the same transformation with

. You can run ./mach test-wpt tests/wpt/tests/html/semantics/embedded-content/the-media-element/ to verify that there is no behaviour change.

Activity

  1. added
    A-content/dom
    E-less-complex
    I-safety
    on Oct 19, 2026
  2. servo-highfive commented on Oct 19, 2026

    @servo-highfive

    Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in Zulip.

    If you intend to work on this issue, then add @servo-highfive: assign me to your comment, and I'll assign this to you. 😄

    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. CynthiaOketch commented on Oct 19, 2026

    @CynthiaOketch
    Contributor

    @servo-highfive: assign me

  4. added
    C-assigned
    on Oct 19, 2026
  5. servo-highfive commented on Oct 19, 2026

    @servo-highfive

    Hey @CynthiaOketch! Thanks for your interest in working on this issue. It's now assigned to you!

  6. added a commit that references this issue on Oct 20, 2026
    2fed593
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/domC-assignedE-less-complexI-safety

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions