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); }