From 73bf6f95f80a971e6532ab09b2077542d5cd5576 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 29 Nov 2023 23:39:50 +0100 Subject: [PATCH] Revert "No issue - Stop supporting data: scheme in SVG elements." This reverts commit 7e60482d8090a43e00957f3d6fc87f31d7ea65a1. Of course it's not that simple. In Mozilla land they are also running into issues but of a different variety and it was backed out there also. --- dom/svg/SVGUseElement.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dom/svg/SVGUseElement.cpp b/dom/svg/SVGUseElement.cpp index 8da90634ad..acd8941b4e 100644 --- a/dom/svg/SVGUseElement.cpp +++ b/dom/svg/SVGUseElement.cpp @@ -426,17 +426,6 @@ SVGUseElement::LookupHref() nsCOMPtr targetURI; nsContentUtils::NewURIWithDocumentCharset(getter_AddRefs(targetURI), href, GetComposedDoc(), baseURI); - - // Do not allow 'data:' schemes in elements. - // See spec update: https://github.com/w3c/svgwg/pull/901 - if (targetURI) { - bool isData; - mozilla::Unused << targetURI->SchemeIs("data", &isData); - if (isData) { - return; - } - } - mSource.Reset(this, targetURI); }