This test loads an insecure resource that redirects to a secure PDF guarded by basic authentication. The secure PDF should not be downloaded because it requires credentials and was loaded via an insecure redirect. This test PASSED if you see a JavaScript alert with message "Unauthorized". Otherwise, it FAILED.

the link.