commit 2e85600e0fd1f9e35a53b3b212f611dfdb8b0525
parent 179851992dd112074d68c1128cd21f409b05df0d
Author: webbeef <me@webbeef.org>
Date: Mon, 8 Dec 2025 12:29:46 +0000
Bug 2004424 [wpt PR 56521] - dom: Avoid crashing on empty favicon `href` attribute, a=testonly
Automatic update from web-platform-tests
dom: don't crash on empty favicon href attributes.
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 <me@webbeef.org>
--
wpt-commits: 2aa358b147d0c41801449eecc0ae798e6cac16b0
wpt-pr: 56521
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/html/links/icon/empty-href-crash.html b/testing/web-platform/tests/html/links/icon/empty-href-crash.html
@@ -0,0 +1,4 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Test for #41047: Panic when the href attribute of a link is empty.</title>
+<link rel="icon" href="">