blob: 0549739f01373a4bee04a8a128514e565873d399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.onload = function()
{
window.setTimeout("window.location.href = 'resources/notify-done.html';", 0);
}
window.onbeforeunload = function()
{
return "This is beforeunload from the top level frame.";
}
</script>
<body>
<p>This page registers a 'beforeunload' handler, and contains multiple IFrames that each do the same. Only the initial dialog from this top-level frame should display. The IFrame dialogs should be suppressed.</p>
<iframe src="resources/iframe-with-beforeunload.html"></iframe>
<iframe src="resources/iframe-with-beforeunload.html"></iframe>
</body>
</html>
|