Skip to content

script: Do not access ScriptThread via TLS in ParserContext - #47777

Merged
jdm merged 1 commit into
servo:mainfrom
mrobinson:remove-tls-access-in-servoparser
Sep 3, 2026
Merged

jdm merged 1 commit into
servo:mainfrom
mrobinson:remove-tls-access-in-servoparser

Conversation

@mrobinson

Copy link
Copy Markdown
Member

This is part of the ongoing work to address #37969. This change makes it
so that ParserContext accesses the ScriptThread via a parameter
instead of via TLS. This requires making it so that ParserContext does
not implement the FetchResponseListener, which wasn't important
anyway. This simplifies the code a bit.

Testing: This does not change behavior so is covered by existing tests.
Fixes: This is part of #37969.

This is part of the ongoing work to address servo#37969. This change makes it
so that `ParserContext` accesses the `ScriptThread` via a parameter
instead of via TLS. This requires making it so that `ParserContext` does
not implement the `FetchResponseListener`, which wasn't important
anyway. This simplifies the code a bit.

Signed-off-by: Martin Robinson <[email protected]>
@mrobinson
mrobinson requested a review from gterzian as a code owner September 3, 2026 14:46
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 3, 2026

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this is great. Better performance, clearer dependencies, and less square pegs in round holes!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Sep 3, 2026
@jdm
jdm enabled auto-merge September 3, 2026 14:57
@jdm
jdm added this pull request to the merge queue Sep 3, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 3, 2026
Merged via the queue into servo:main with commit 3c4f721 Sep 3, 2026
36 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 3, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…o#47777)

This is part of the ongoing work to address servo#37969. This change makes it
so that `ParserContext` accesses the `ScriptThread` via a parameter
instead of via TLS. This requires making it so that `ParserContext` does
not implement the `FetchResponseListener`, which wasn't important
anyway. This simplifies the code a bit.

Testing: This does not change behavior so is covered by existing tests.
Fixes: This is part of servo#37969.

Signed-off-by: Martin Robinson <[email protected]>
Psychpsyo pushed a commit to Psychpsyo/servo that referenced this pull request Oct 12, 2026
…o#47777)

This is part of the ongoing work to address servo#37969. This change makes it
so that `ParserContext` accesses the `ScriptThread` via a parameter
instead of via TLS. This requires making it so that `ParserContext` does
not implement the `FetchResponseListener`, which wasn't important
anyway. This simplifies the code a bit.

Testing: This does not change behavior so is covered by existing tests.
Fixes: This is part of servo#37969.

Signed-off-by: Martin Robinson <[email protected]>
jschwe pushed a commit to jschwe/servo that referenced this pull request Nov 5, 2026
…ext` (servo#47777)

This is part of the ongoing work to address servo#37969. This change makes it
so that `ParserContext` accesses the `ScriptThread` via a parameter
instead of via TLS. This requires making it so that `ParserContext` does
not implement the `FetchResponseListener`, which wasn't important
anyway. This simplifies the code a bit.

Testing: This does not change behavior so is covered by existing tests.
Fixes: This is part of servo#37969.

Signed-off-by: Martin Robinson <[email protected]>
(cherry picked from commit 3c4f721)
jschwe pushed a commit that referenced this pull request Nov 9, 2026
…ext` (#47777)

This is part of the ongoing work to address #37969. This change makes it
so that `ParserContext` accesses the `ScriptThread` via a parameter
instead of via TLS. This requires making it so that `ParserContext` does
not implement the `FetchResponseListener`, which wasn't important
anyway. This simplifies the code a bit.

Testing: This does not change behavior so is covered by existing tests.
Fixes: This is part of #37969.

Signed-off-by: Martin Robinson <[email protected]>
(cherry picked from commit 3c4f721)
@mrobinson
mrobinson deleted the remove-tls-access-in-servoparser branch November 21, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants