Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1700)

Unified Diff: Source/core/svg/SVGAnimationElement.cpp

Issue 1171223004: Sanitize SVG animation attributes which could set JavaScript URL values. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Thanks for feedback. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGAnimationElement.h ('k') | Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimationElement.cpp
diff --git a/Source/core/svg/SVGAnimationElement.cpp b/Source/core/svg/SVGAnimationElement.cpp
index 4b59a4a2ed6bbea2eae633a3477221fa3a37659c..ae647a9033ccdadfa0c0ae3f296087e838398711 100644
--- a/Source/core/svg/SVGAnimationElement.cpp
+++ b/Source/core/svg/SVGAnimationElement.cpp
@@ -52,7 +52,7 @@ SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document&
UseCounter::count(document, UseCounter::SVGAnimationElement);
}
-static bool parseValues(const String& value, Vector<String>& result)
+bool SVGAnimationElement::parseValues(const String& value, Vector<String>& result)
{
// Per the SMIL specification, leading and trailing white space,
// and white space before and after semicolon separators, is allowed and will be ignored.
« no previous file with comments | « Source/core/svg/SVGAnimationElement.h ('k') | Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698