Skip to content

dom: Avoid crashing on empty favicon href attribute#56521

Merged
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_41056
Dec 6, 2025
Merged

dom: Avoid crashing on empty favicon href attribute#56521
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_41056

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

Add a check to handle_favicon_url() similar to the ones done in similar functions: handle_stylesheet_url() and fetch_and_process_prefetch_link()

Testing: Check that loading http://chiptune.com/ doesn't crash anymore.
Fixes: servo/servo#41047

Reviewed in servo/servo#41056

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.

Add a check to handle_favicon_url() similar to the ones done in similar
functions: handle_stylesheet_url() and fetch_and_process_prefetch_link()

Signed-off-by: webbeef <[email protected]>
@servo-wpt-sync servo-wpt-sync changed the title dom: don't crash on empty favicon href attributes. dom: Avoid crashing on empty favicon href attribute Dec 6, 2025
@servo-wpt-sync servo-wpt-sync merged commit 2aa358b into web-platform-tests:master Dec 6, 2025
25 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_41056 branch December 6, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants