Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / form-submission-crash.html
blobb8b42b3390f354aee5d0e5c6f34cdbab47b8f8bb
1 <!DOCTYPE html>
2 <body>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 jsTestIsAsync = true;
6 var form1;
7 var submit1;
9 function start() {
10 form1 = document.createElement('form');
11 submit1 = document.createElement('input');
12 submit1.type = 'submit';
13 form1.addEventListener('submit', handleSubmit, false);
14 form1.action = 'javascript:gc()';
15 form1.appendChild(submit1);
16 submit1.click();
17 testPassed('if not crashed.');
18 finishJSTest();
21 function handleSubmit() {
22 form1.removeChild(submit1);
23 form1 = null;
25 window.onload = start;
26 </script>
27 </body>