| Index: LayoutTests/fast/files/file-reader-abort-gc-iframe.html
|
| diff --git a/LayoutTests/fast/files/file-reader-abort-gc-iframe.html b/LayoutTests/fast/files/file-reader-abort-gc-iframe.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3fba069617b17813cd3820df4241b3b96f7714b6
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/files/file-reader-abort-gc-iframe.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script>
|
| +description("Verify that an aborted and stopping FileReader doesn't crash");
|
| +
|
| +window.jsTestIsAsync = true;
|
| +
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +var reader;
|
| +function setReader(r) {
|
| + reader = r;
|
| +}
|
| +
|
| +function runTest() {
|
| + reader.readAsText(new Blob());
|
| + reader.abort();
|
| + document.body.removeChild(document.getElementById('ifr'));
|
| + reader = null;
|
| + gc();
|
| + testPassed("No crash");
|
| + finishJSTest();
|
| +}
|
| +</script>
|
| +<iframe id=ifr src="resources/file-reader-abort-gc-iframe.html"></iframe>
|
|
|