| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 | |
| 5 if (window.testRunner) { | |
| 6 testRunner.dumpAsText(); | |
| 7 testRunner.dumpChildFramesAsText(); | |
| 8 testRunner.setHandlesAuthenticationChallenges(true); | |
| 9 testRunner.setAuthenticationUsername("wrongusername"); | |
| 10 testRunner.setAuthenticationPassword("wrongpassword"); | |
| 11 testRunner.waitUntilDone(); | |
| 12 } | |
| 13 | |
| 14 function firstFrameLoaded() { | |
| 15 if (window.testRunner) { | |
| 16 testRunner.setAuthenticationUsername("correctusername"); | |
| 17 testRunner.setAuthenticationPassword("correctpassword"); | |
| 18 } | |
| 19 var frame = document.createElement("iframe"); | |
| 20 frame.setAttribute("src", "http://127.0.0.1:8000/loading/resources/test2/bas
ic-auth-testing.php?username=correctusername&password=correctpassword"); | |
| 21 frame.setAttribute("onload", "secondFrameLoaded()"); | |
| 22 document.body.appendChild(frame); | |
| 23 } | |
| 24 | |
| 25 function secondFrameLoaded() { | |
| 26 if (window.testRunner) | |
| 27 testRunner.notifyDone(); | |
| 28 } | |
| 29 | |
| 30 </script> | |
| 31 </head> | |
| 32 <body> | |
| 33 This test makes sure that once WebCore preemptively sends out Basic credentials
it thinks apply to a new resource, and that resource response with a 401 challen
ge, that it doesn't try to send the same wrong credentials a second time.<br> | |
| 34 <iframe src="resources/test2/protected-resource.php" onload="firstFrameLoaded();
"></iframe> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |