6 window.gc = function() {
\r
7 if (window.GCController)
\r
8 return GCController.collect();
\r
9 for (var i = 0; i < 10000; i++) {
\r
10 var s = new String("abc");
\r
16 document.body.innerHTML = 'PASS: handler not supported or did not crash when removing Windows during ondeviceorientation event';
\r
17 if (window.testRunner)
\r
18 testRunner.notifyDone();
\r
23 document.body.innerHTML = '';
\r
25 setTimeout(done, 0);
\r
29 if (window.testRunner) {
\r
30 testRunner.dumpAsText();
\r
31 testRunner.waitUntilDone();
\r
34 frame = document.createElement('iframe');
\r
35 document.body.appendChild(frame);
\r
37 if (!frame.contentWindow.ondeviceorientation)
\r
40 frame.contentWindow.ondeviceorientation = remove;
\r
43 <body onload="crash()">
\r