Skip to content

script: Fix handling of invalid fetch responses for link stylesheets#57295

Merged
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_42037
Jan 24, 2026
Merged

script: Fix handling of invalid fetch responses for link stylesheets#57295
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_42037

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

Regardless of the Ok status, we should always create a
stylesheet. However, the determining of the load/error event
is based on whether it has parsed actual content or not.

It also realigns some of the spec text to now only do it for link
elements, since for styles we shouldn't be checking the result of
the content type.

Part of #22715
Reviewed in servo/servo#42037

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_42037 branch 3 times, most recently from 9799e68 to 96f626b Compare January 24, 2026 10:13
These should cause it to fail, regardless of the Ok status. To do so,
we remove the `bool` and use the `Option` to convey success/failure.

It also realigns some of the spec text to now only do it for link
elements, since for styles we shouldn't be checking the result of
the content type.

Part of web-platform-tests#22715

Signed-off-by: Tim van der Lippe <[email protected]>
@servo-wpt-sync servo-wpt-sync merged commit b88d445 into web-platform-tests:master Jan 24, 2026
26 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_42037 branch January 24, 2026 11:54
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