diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/upgrade-insecure-requests/link-upgrade.sub.https.html | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/upgrade-insecure-requests/link-upgrade.sub.https.html')
-rw-r--r-- | testing/web-platform/tests/upgrade-insecure-requests/link-upgrade.sub.https.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade.sub.https.html b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade.sub.https.html new file mode 100644 index 0000000000..46788e8883 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade.sub.https.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + + <head> + <meta name="timeout" content="long"> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + </head> + + <body> + <script> + const test_data = [ + { + url : './link-upgrade/basic-link-no-upgrade.sub.html', + done_message : 'basic-link-no-upgrade', + }, + { + url : './link-upgrade/basic-link-upgrade.sub.html', + done_message : 'basic-link-upgrade', + }, + { + url : './link-upgrade/iframe-link-upgrade.sub.html', + done_message : 'iframe-link-upgrade', + }, + { + url : './link-upgrade/iframe-top-navigation-no-upgrade-1.sub.html', + done_message : 'iframe-top-navigation-no-upgrade-1', + }, + { + url : './link-upgrade/iframe-top-navigation-no-upgrade-2.sub.html', + done_message : 'iframe-top-navigation-no-upgrade-2', + }, + { + url : './link-upgrade/iframe-top-navigation-upgrade-1.sub.html', + done_message : 'iframe-top-navigation-upgrade-1', + }, + { + url : './link-upgrade/iframe-top-navigation-upgrade-2.sub.html', + done_message : 'iframe-top-navigation-upgrade-2', + }, + { + url : './link-upgrade/iframe-top-navigation-upgrade-meta.sub.html', + done_message : 'iframe-top-navigation-upgrade-meta', + }, + ]; + for(let i = 0; i<test_data.length; i+=1) { + let data = test_data[i]; + let test = async_test(data.url); + test.step(function() { + let w = window.open(data.url, data.url); + this.add_cleanup(() => w.close()); + assert_true(w != undefined, "Popup must not be blocked"); + + window.addEventListener("message", event => { + if (event.data == data.done_message) + test.done(); + }); + }); + + test.step_timeout(function(){test.force_timeout()}, 10000); + } + </script> + </body> + +</html> |