| <!DOCTYPE html> |
| <script src="/js-test-resources/js-test.js"></script> |
| <body> |
| <script> |
| description("This test checks that all URLs in a redirect chain are passed to the PermissionClient."); |
| window.jsTestIsAsync = true; |
| |
| if (window.testRunner) |
| testRunner.dumpPermissionClientCallbacks(); |
| |
| var img = new Image(); |
| img.src = "http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http://127.0.0.1:8000/permissionclient/resources/boston.gif"; |
| img.onerror = function() { testFailed('error event for image'); finishJSTest(); }; |
| img.onload = function() { finishJSTest(); }; |
| document.body.appendChild(img); |
| </script> |