Skip to content

Commit

Permalink
Bug 1628757 [wpt PR 22823] - [css-filters] Migrate feimage-circular-r…
Browse files Browse the repository at this point in the history
…eference-foreign-object-crash.html to WPT, a=testonly

Automatic update from web-platform-tests
[css-filters] Migrate feimage-circular-reference-foreign-object-crash.html to WPT

This test moves feimage-circular-reference-foreign-object-crash.html to
wpt/.

It also migrates the test into a regular crash test that waits long
enough to check that the crash does not really happen using
class="test-wait" (hence dropping the use of testharness.js
and testharnessreport.js).

[email protected], [email protected]

Bug: 1063749
Change-Id: I59eb6495c307d760e8969d37f72c17870b0d24bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144511
Commit-Queue: Antonio Gomes <[email protected]>
Commit-Queue: Stephen McGruer <[email protected]>
Auto-Submit: Antonio Gomes <[email protected]>
Reviewed-by: Stephen McGruer <[email protected]>
Reviewed-by: Fredrik Söderquist <[email protected]>
Cr-Commit-Position: refs/heads/master@{#757969}

--

wpt-commits: 63c3dbd1a25f93b16ef771a379db261c2bc49058
wpt-pr: 22823
  • Loading branch information
tonikitoo authored and moz-wptsync-bot committed Apr 13, 2020
1 parent 444ac27 commit 6a73d3a
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html class="test-wait">
<title>CSS Filters: filter reference a SVG foreign object.</title>
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="bookmark" href="https://crrev.com/c/1080147">
<meta name="assert" content="Test ensures that updating a filter which references a SVG foreign object through feImage with a circular reference does not crash."/>
<script src="/common/rendering-utils.js"></script>
<script>
waitForAtLeastOneFrame().then(function() {
feImage.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', '#svg');
document.documentElement.classList.remove('test-wait');
});
</script>
<svg>
<filter id="filter">
<feImage id="feImage"></feImage>
</filter>
</svg>
<svg id="svg">
<foreignObject id="foreignObject" filter="url(#filter)">FO</foreignObject>
</svg>
</html>

0 comments on commit 6a73d3a

Please sign in to comment.