mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
No issue - Stop supporting data: scheme in SVG <use> elements.
This commit is contained in:
parent
926ee14909
commit
b19fe58909
1 changed files with 11 additions and 0 deletions
|
|
@ -426,6 +426,17 @@ SVGUseElement::LookupHref()
|
||||||
nsCOMPtr<nsIURI> targetURI;
|
nsCOMPtr<nsIURI> targetURI;
|
||||||
nsContentUtils::NewURIWithDocumentCharset(getter_AddRefs(targetURI), href,
|
nsContentUtils::NewURIWithDocumentCharset(getter_AddRefs(targetURI), href,
|
||||||
GetComposedDoc(), baseURI);
|
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);
|
mSource.Reset(this, targetURI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue