Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: LayoutTests/fast/files/file-reader-abort-gc-iframe.html

Issue 478263002: Avoid GCing an aborting and stopped FileReader. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/files/file-reader-abort-gc-iframe-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description("Verify that an aborted and stopping FileReader doesn't crash");
5
6 window.jsTestIsAsync = true;
7
8 if (window.testRunner)
9 testRunner.dumpAsText();
10
11 var reader;
12 function setReader(r) {
13 reader = r;
14 }
15
16 function runTest() {
17 reader.readAsText(new Blob());
18 reader.abort();
19 document.body.removeChild(document.getElementById('ifr'));
20 reader = null;
21 gc();
22 testPassed("No crash");
23 finishJSTest();
24 }
25 </script>
26 <iframe id=ifr src="resources/file-reader-abort-gc-iframe.html"></iframe>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/files/file-reader-abort-gc-iframe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698