Skip to content

Commit

Permalink
Bug 1861736 - crashtest r=emilio
Browse files Browse the repository at this point in the history
  • Loading branch information
longsonr committed Jan 2, 2024
1 parent 2108f8b commit 6c86f21
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dom/svg/crashtests/1861736.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<script>
document.addEventListener('DOMContentLoaded', async () => {
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg')
const filter = document.createElementNS('http://www.w3.org/2000/svg', 'filter')
filter.setAttribute('id', 'id_0')
svg.appendChild(filter)
document.documentElement.appendChild(svg)
const doc = new Document()
const canvas = document.createElement('canvas')
const context = canvas.getContext('2d')
context.filter = 'url(#id_0)'
doc.adoptNode(document.documentElement)
SpecialPowers.gc()
setTimeout('self.close()', 2000)
})
</script>
1 change: 1 addition & 0 deletions dom/svg/crashtests/crashtests.list
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@ load 1572904.html
load 1683907.html
pref(dom.svg.pathSeg.enabled,true) load 1715387.html
load 1837487.html
load 1861736.html

0 comments on commit 6c86f21

Please sign in to comment.