Name Description Size
browser.toml 1293
browser_beforeunload_permit_http.js Description of Tests: Test load page and reload: 1. Enable HTTPS-First and the pref to trigger beforeunload by user interaction 2. Open an HTTP site. HTTPS-First will try to upgrade it to https - but since it has no cert that try will fail 3. Then simulated user interaction and reload the page with a reload flag. 4. That should lead to a beforeUnload prompt that asks for users permission to perform reload. HTTPS-First should not try to upgrade the reload again Test Navigation: 1. Enable HTTPS-First and the pref to trigger beforeunload by user interaction 2. Open an http site. HTTPS-First will try to upgrade it to https - but since it has no cert for https that try will fail 3. Then simulated user interaction and navigate to another http page. Again HTTPS-First will try to upgrade to HTTPS 4. This attempted navigation leads to a prompt which askes for permission to leave page - accept it 5. Since the site is not using a valid HTTPS cert HTTPS-First will downgrade the request back to HTTP 6. User should NOT get asked again for permission to unload Test Session History Navigation: 1. Enable HTTPS-First and the pref to trigger beforeunload by user interaction 2. Open an http site. HTTPS-First will try to upgrade it to https - but since it has no cert for https that try will fail 3. Then navigate to another http page and simulated a user interaction. 4. Trigger a session history navigation by clicking the "back button". 5. This attempted navigation leads to a prompt which askes for permission to leave page - accept it 7693
browser_downgrade_mixed_content_auto_upgrade_console.js 2383
browser_downgrade_view_source.js 2924
browser_download_attribute.js 4256
browser_httpsfirst.js 2936
browser_httpsfirst_console_logging.js 2246
browser_httpsfirst_speculative_connect.js 1928
browser_mixed_content_console.js 3561
browser_mixed_content_download.js Waits until a download is triggered. It waits until a prompt is shown, saves and then accepts the dialog. @returns {Promise} Resolved once done. 4884
browser_navigation.js 2647
browser_schemeless.js Any copyright is dedicated to the Public Domain. https://creativecommons.org/publicdomain/zero/1.0/ 6705
browser_slow_download.js Waits for a download to finish, in case it has not finished already. @param aDownload The Download object to wait upon. @return {Promise} @resolves When the download has finished successfully. @rejects JavaScript exception if the download failed. 5067
browser_subdocument_downgrade.js Any copyright is dedicated to the Public Domain. https://creativecommons.org/publicdomain/zero/1.0/ 2257
browser_superfluos_auth.js Any copyright is dedicated to the Public Domain. https://creativecommons.org/publicdomain/zero/1.0/ 1963
browser_upgrade_onion.js 2068
download_page.html Test mixed content download by https-first 564
download_server.sjs 475
file_bad_cert.sjs 961
file_beforeunload_permit_http.html 138
file_break_endless_upgrade_downgrade_loop.sjs 1978
file_data_uri.html Bug 1709069: Test that Data URI which makes a top-level request gets updated in https-first 403
file_downgrade_500_responses.sjs 2049
file_downgrade_bad_responses.sjs 2095
file_downgrade_request_upgrade_request.sjs 1692
file_downgrade_view_source.sjs 830
file_downgrade_with_different_path.sjs 675
file_download_attribute.html Test download attribute for http site 424
file_download_attribute.sjs 424
file_empty.html 42
file_form_submission.sjs 2475
file_fragment.html 1192
file_httpsfirst_speculative_connect.html 78
file_httpsfirst_timeout_server.sjs 424
file_mixed_content_auto_upgrade.html Bug 1673574 - Improve Console logging for mixed content auto upgrading 427
file_mixed_content_console.html Bug 1713593: HTTPS-First: Add test for mixed content blocker. 664
file_multiple_redirection.sjs 3505
file_navigation.html 71
file_redirect.sjs 1818
file_redirect_downgrade.sjs 2347
file_referrer_policy.sjs 3154
file_slow_download.html Test slow download from an http site that gets upgraded to https 450
file_slow_download.sjs 783
file_subdocument_downgrade.sjs 283
file_toplevel_cookies.sjs 6917
file_upgrade_insecure.html Bug 1704454 - HTTPS FIRST Mode 2803
file_upgrade_insecure_server.sjs 3475
mochitest.toml 1367
pass.png 0
test.wav 0
test.webm 0
test_bad_cert.html HTTPS-FirstMode - Bad Certificates 2460
test_break_endless_upgrade_downgrade_loop.html HTTPS-First-Mode - Break endless upgrade downgrade redirect loop 2590
test_data_uri.html Bug 1709069: Test that Data URI which makes a top-level request gets updated in https-first 1383
test_downgrade_500_responses.html Bug 1747673 : HTTPS First fallback to http for non-standard 5xx status code responses 1930
test_downgrade_bad_responses.html Bug 1709552 : HTTPS-First: Add downgrade tests for bad responses to https request 1838
test_downgrade_request_upgrade_request.html Bug 1706126: Test https-first, downgrade first request and then upgrade redirection to subdomain 1804
test_form_submission.html Bug 1720103 - Https-first: Do not upgrade form submissions (for now) 3940
test_fragment.html Bug 1706577: Have https-first mode account for fragment navigations 1674
test_multiple_redirection.html HTTPS-First-Mode - Test for multiple redirections 3458
test_redirect_downgrade.html Bug 1707856: Test redirect downgrades with https-first 1660
test_redirect_upgrade.html HTTPS-FirstMode - Redirect Upgrade 2058
test_referrer_policy.html Bug 1716706 : Write referrer-policy tests for https-first 11370
test_resource_upgrade.html HTTPS-First Mode - Resource Upgrade 4112
test_toplevel_cookies.html Bug 1711453 : HTTPS-First: Add test for cookies 4890