Skip to content

Commit dc377a6

Browse files
longsonrmoz-wptsync-bot
authored andcommitted
limit the number of filter primitives we're willing to accept on a single filter
Differential Revision: https://phabricator.services.mozilla.com/D256994 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1975943 gecko-commit: ca0cb06ff8f3923966e155b0cecd1483b7b0a0dd gecko-reviewers: emilio
1 parent 7da2887 commit dc377a6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<title>
3+
Having lots of filter primitives shouldn't crash.
4+
</title>
5+
<div style="filter:url(#test1)">test</div>
6+
<svg
7+
width="768"
8+
height="768"
9+
viewBox="0 0 768 768"
10+
xmlns="http://www.w3.org/2000/svg">
11+
<filter id="test1">
12+
<feMorphology operator="dilate" radius="1" />
13+
</filter>
14+
</svg>
15+
<script>
16+
test1.innerHTML = test1.innerHTML.repeat(10000);
17+
</script>

0 commit comments

Comments
 (0)