summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/npp-set-window-called-during-destruction.html
blob: 332d73e65e49cf1c8eab258d394bd538043cd9e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <embed type="application/x-webkit-test-netscape" test="npp-set-window-called-during-destruction"></embed>
    <p>This tests whether a NPP_SetWindow is called during plugin destruction.</p>
    <script>
        if (window.testRunner)
            testRunner.dumpAsText();
        var embed = document.getElementsByTagName("embed")[0];
        embed.setWillBeDestroyed();
        embed.parentNode.removeChild(embed);
    </script>
</body>
</html>