Crash under WebCore::AXObjectCache::handleMenuItemSelected
[WebKit-https.git] / LayoutTests / accessibility / accessibility-crash-focused-element-change.html
1 <!DOCTYPE HTML>
2
3 <body onload=jsfuzzer()>
4 PASS if no crash.
5 <script>
6
7 if (window.accessibilityController) {
8     var button = accessibilityController.focusedElement;
9 }
10
11 if (window.testRunner) {
12     testRunner.dumpAsText();
13 }
14
15 function jsfuzzer() {
16     var a;
17      //trigger garbage collector
18     for(var i=0; i<100; i++) {
19         a = new Uint8Array(1024*1024);
20     }
21     document.implementation.createHTMLDocument("doc");
22 }
23
24 function eventhandler() {
25     try { htmlvar00007.remove(); } catch(e) { }
26 }
27 </script>
28
29 <select id="htmlvar00007" onblur="eventhandler()" autofocus="autofocus" min="1" align="Right">
30 </select>
31 <button id="htmlvar00013" autofocus="autofocus" formmethod="post" formnovalidate="formnovalidate" formmethod="post" formtarget="htmlvar00004" inner="1" valign="middle"></button>
32 </body>