mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Revert "No issue - Stop supporting data: scheme in SVG <use> 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.
This commit is contained in:
parent
48698abb77
commit
73bf6f95f8
1 changed files with 0 additions and 11 deletions
|
|
@ -426,17 +426,6 @@ SVGUseElement::LookupHref()
|
|||
nsCOMPtr<nsIURI> targetURI;
|
||||
nsContentUtils::NewURIWithDocumentCharset(getter_AddRefs(targetURI), href,
|
||||
GetComposedDoc(), baseURI);
|
||||
|
||||
// Do not allow 'data:' schemes in <use> 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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue