Tests for downloads
Main page
Test case: Download support
By default, downloads are not supported by UIWebView. This support is bolted-on by some browsers.
Run test case
- If the file is displayed and its content starts with https://ios.browsr-tests.com/alt/, please run the attachment origin test case below. Otherwise you may skip it.
- If the browser downloads the file or allows you to download it with a dialog or context menu option, please open the file in the download manager.
- After downloading the file, please open it and check its content - if it starts with file:, the baseURL is not modified for downloads and same-origin policy does not apply to them (not safe).
Test case: Attachment origin (absolute URL)
For Content-Disposition attachment, UIWebView has a separate origin disallowing same-domain access. This test case checks for access to location and referrer values, and for possible Cross-Site Scripting by escaping attachment origin using browser-defined document.write.
Run test case
Test case: Attachment origin (relative path)
A variant of the above test.
Run test case
Test case: text/plain
Run test case
Test case: application/octet-stream
Run test case
Test case: application/other
Run test case
Continue to Basic tests for SSL