Expand r209943 to suppress paste during provisional navigation as well
[WebKit-https.git] / LayoutTests / http / tests / navigation / keyboard-events-during-provisional-subframe-navigation.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4     <iframe id="subframe"></iframe>
5     <a href="resources/keyboard-events-after-navigation.html" accesskey="z"></a>
6     <script src="resources/keyboard-events-test.js"></script>
7     <script>
8         if (window.testRunner) {
9             testRunner.dumpAsText();
10             testRunner.dumpChildFramesAsText();
11             testRunner.waitUntilDone();
12             internals.settings.setShouldSuppressTextInputFromEditingDuringProvisionalNavigation(true);
13         }
14
15         runBeforeTest(window);
16
17         waitForProvisionalNavigation(function () {
18             console.log("Provisional navigation started.");
19             console.log("No trusted events should be logged and the input element should have the value \"\".");
20             runTest(document.getElementById("subframe").contentWindow);
21
22             console.log("Pressing \"z\" with access key modifiers should navigate to resources/keyboard-events-after-navigation.html.");
23             window.focus();
24             eventSender.keyDown("z", internals.accessKeyModifiers());
25         });
26     </script>
27 </body>
28 </html>