summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/open-and-close-window-with-plugin.html
blob: fe5d95980bfc558a7c7787528a3dae399000f53f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<script>
if (!window.testRunner) {
    alert('this test can only be run by DumpRenderTree')
} else {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
    testRunner.setCallCloseOnWebViews(false);
    testRunner.setCanOpenWindows();
    testRunner.setCloseRemainingWindowsWhenComplete(false);
    window.open('resources/open-and-close-window-with-plugin.html');
}

</script>
This tests that opening a window with a WebView that contains a plugin, and then closing the window without calling -[WebView close] does not leak the window or the web view.
</html>