Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / data / android / url_overriding / navigation_from_xhr_callback.html
blob07edcffcba4faa5aad4c7f8129520a3a2a24f3b3
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta name="viewport"
5 content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
6 <script>
7 var xmlhttp = new XMLHttpRequest();
9 function openApp() {
10 window.location = 'intent://test/#Intent;scheme=test;package=com.chrome.test;end';
13 function xhrOnReadyStateChange() {
14 if (xmlhttp.readyState==4 && xmlhttp.status==200) {
15 openApp();
19 function xhrAndOpenApp() {
20 xmlhttp.onreadystatechange = xhrOnReadyStateChange;
21 xmlhttp.open("GET", 'hello.html' , true);
22 xmlhttp.send();
24 </script>
25 </head>
26 <body style='height:10000px;' onclick='xhrAndOpenApp();'>
27 Click page to open App!!
28 </body>
29 </html>