Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPv175] Don't crash on circular filter reference containing foreignO…
…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
1 parent
6b13681
commit 130b38a
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
svg/foreignobject/foreign-object-circular-filter-reference-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
13
svg/svg-in-svg/svg-in-svg-circular-filter-reference-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |