Skip to content

Worklet can access ScriptThread TLS after it's no longer valid #25838

@jdm

Description

@jdm

This can cause panics if a GC occurs after the ScriptThread code has cleaned up the TLS:

impl Drop for Worklet {
fn drop(&mut self) {
let script_thread = ScriptThread::worklet_thread_pool();
script_thread.exit_worklet(self.worklet_id);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domInteracting with the DOM from web contentC-has-patchI-panicServo encounters a panic.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions