summaryrefslogtreecommitdiffstats
path: root/layout/base/crashtests/793848.html
blob: 4f84a867c2adda7dd44372a2dd37c8b5b5c52e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<script>

    function f(event) {
        document.removeEventListener("DOMAttrModified", f);

        // dumpln(event.attrChange); /* 2 (MutationEvent.ADDITION) */
        // dumpln(event.attrName); /* "curpos" */
        // dumpln(event.newValue); /* "0" */

        // (gdb) break nsGlobalWindow::Dump
        dump("[[[[DOMAttrModified\n");
        document.removeChild(svgUse);
        dump("]]]]\n");
    }

    var svgUse = document.createElementNS("http://www.w3.org/2000/svg", "use");
    document.removeChild(document.documentElement);
    document.addEventListener("DOMAttrModified", f);
    document.appendChild(svgUse);

</script>
</head>

<body onload="boom();"></body>
</html>