| <!DOCTYPE html><!-- webkit-test-runner [ useFlexibleViewport=true ] --> |
| <meta name="viewport" content="width=device-width"> |
| <script src="/js-test-resources/ui-helper.js"></script> |
| testRunner.setShouldLogDownloadCallbacks(true); |
| testRunner.waitUntilDownloadFinished(); |
| <p>Tests that the filename from the Content-Disposition header is used even if a download attribute is specified in HTML.</p> |
| <p>The suggested filename above should be "PASS.txt" and the download should succeed.</p> |
| <a id="download-url" href="resources/content-disposition-pass.php" download="FAIL.txt">Link with download attribute.</a> |
| if (!window.eventSender) { |
| alert('Click the link to run the test.'); |
| UIHelper.activateAt(elmt.offsetLeft + 5, elmt.offsetTop + 5); |
| var link = document.getElementById("download-url"); |