Skip to content

Commit

Permalink
[SPv175] Don't crash on circular filter reference containing foreignO…
Browse files Browse the repository at this point in the history
…bject or svg-in-svg

This is a workaround for the crash bugs. The root cause is tracked
in crbug.com/814815.

Bug: 813446, 813411, 814815
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: Ied370eb2b1f0ffd4424c9c397ea1c899914bdbb0
  • Loading branch information
wangxianzhu authored and chromium-wpt-export-bot committed Feb 22, 2018
1 parent 6b13681 commit 130b38a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>Should not crash on circular filter reference containing a foreignObject.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>test(()=>{})</script>
<svg id="svg" filter="url(#filter)">
<foreignObject overflow="hidden"></foreignObject>
</svg>
<svg>
<filter id="filter">
<feImage xlink:href="#svg"></feImage>
</filter>
</svg>
13 changes: 13 additions & 0 deletions svg/svg-in-svg/svg-in-svg-circular-filter-reference-crash.html
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>Should not crash on circular filter reference containing an svg under svg.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>test(()=>{})</script>
<svg id="svg" filter="url(#filter)">
<filter id="filter">
<feImage xlink:href="#svg"></feImage>
</filter>
<svg overflow="hidden" width="20" height="20">
<rect fill="black" width="20" height="20"></rect>
</svg>
</svg>

0 comments on commit 130b38a

Please sign in to comment.