| Commit-Queue | +0 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
TEST_F(SanitizerTest, Regression) {I think a more descriptive name would be better?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I think a more descriptive name would be better?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
7 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: third_party/blink/renderer/core/sanitizer/sanitizer_unittest.cc
Insertions: 1, Deletions: 1.
@@ -16,7 +16,7 @@
class SanitizerTest : public PageTestBase {};
// Regression test for crbug.com/487863654.
-TEST_F(SanitizerTest, Regression) {
+TEST_F(SanitizerTest, SvgSetWithMultipleColons) {
// Payload from crbug.com/487863654.
const char* payload =
R"X(<svg viewBox="0 0 240 80" xmlns:xlink="http://www.w3.org/1999/xlink"><a id="foo"><text x="20" y="20">click me</text></a><set href="#foo" attributeName="xlink:href:x" to="javascript:alert()"></set></svg>)X";
```
```
The name of the file: third_party/blink/renderer/core/sanitizer/sanitizer.h
Insertions: 1, Deletions: 1.
@@ -129,7 +129,7 @@
// Helper for constructors: Copy from other Sanitizer.
void setFrom(const Sanitizer&);
- FRIEND_TEST_ALL_PREFIXES(SanitizerTest, Regression);
+ FRIEND_TEST_ALL_PREFIXES(SanitizerTest, SvgSetWithMultipleColons);
private:
enum class SanitizerBoolWithAbsence { kAbsent, kTrue, kFalse };
```
[Sanitizer] Check for SVG animate targets by parsing the QName.
To check whether an <svg:set> (& other animate elements) targets a
href/xlink:href attribute, we presently use a string comparison.
That is what the spec says. This may fail, because the actual
interpretation of that value is more complex. Instead, we properly
parse the attribute name, just like SVGAnimateElement::ConstructQualifiedName does.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |