Skip to content

script: Fix handling changes to relevant attributes for stylesheets#57469

Merged
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_42273
Feb 2, 2026
Merged

script: Fix handling changes to relevant attributes for stylesheets#57469
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_42273

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

We weren't removing stylesheets when we should be doing so. This most notably happens when the stylesheet no longer has a href or its "rel" changes.

The crash is also fixed, since the issue was that we were passing the value of the attribute that was changed as if it were an href. However, if we set the type attribute, then that's not the href.

To fix that, we now retrieve the href inside the method so we always have the correct value.

Fixes #42259

Reviewed in servo/servo#42273

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_42273 branch 5 times, most recently from 018af32 to 2fdf9ca Compare February 2, 2026 11:02
We weren't removing stylesheets when we should be doing so.
This most notably happens when the stylesheet no longer has
a href or its "rel" changes.

The crash is also fixed, since the issue was that we were
passing the value of the attribute that was changed as if
it were an href. However, if we set the type attribute, then
that's not the href.

To fix that, we now retrieve the href inside the method so
we always have the correct value.

Fixes web-platform-tests#42259

Signed-off-by: Tim van der Lippe <[email protected]>
@servo-wpt-sync servo-wpt-sync merged commit da913f1 into web-platform-tests:master Feb 2, 2026
19 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_42273 branch February 2, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants