Repository navigation
script: Do not access ScriptThread via TLS in ParserContext - #47777
Merged
Merged
Conversation
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]>
jdm
approved these changes
Sep 3, 2026
jdm
left a comment
Member
There was a problem hiding this comment.
Oh, this is great. Better performance, clearer dependencies, and less square pegs in round holes!
jdm
enabled auto-merge
September 3, 2026 14:57
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is part of the ongoing work to address #37969. This change makes it
so that
ParserContextaccesses theScriptThreadvia a parameterinstead of via TLS. This requires making it so that
ParserContextdoesnot implement the
FetchResponseListener, which wasn't importantanyway. This simplifies the code a bit.
Testing: This does not change behavior so is covered by existing tests.
Fixes: This is part of #37969.