Source/WebCore: [V8] Crash in npObjectGetProperty() in V8NPObject.cpp
[WebKit-https.git] / LayoutTests / plugins / plugin-document-back-forward.html
1 <html>
2 <script>
3 if (window.layoutTestController) {
4     layoutTestController.waitUntilDone();
5     layoutTestController.dumpAsText();
6 }
7
8 state = "initial";
9
10 function next() {
11     switch (state) {
12     case "initial":
13         state = "loading-plugin";
14         var frame = document.getElementsByTagName("iframe")[0]
15         frame.addEventListener("load", next, false);
16         frame.src = "data:application/x-webkit-test-netscape,alertwhenloaded";
17         break;
18     case "loading-plugin":
19         state = "moving-backward";
20         history.back();
21         break;
22     case "moving-backward":
23         state = "moving-forward";
24         history.forward();
25         break;
26     case "moving-forward":
27         state = "done";
28         layoutTestController.notifyDone();
29         break;
30     default:
31         alert('FAIL');
32         break;
33     }
34 }
35
36 window.onload = function() {
37     // We need to wait for after the load event so that we get a new history
38     // entry when navigating the frame.
39     setTimeout(next, 0);
40 }
41 </script>
42 <iframe src="data:text/html,Waiting..."></iframe>
43 </html>