diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /browser/base/content/test/tabs/file_window_open.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | browser/base/content/test/tabs/file_window_open.html | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/browser/base/content/test/tabs/file_window_open.html b/browser/base/content/test/tabs/file_window_open.html new file mode 100644 index 0000000000..831bafe6bd --- /dev/null +++ b/browser/base/content/test/tabs/file_window_open.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<head> + <meta charset="utf-8"> + <title>window.open test</title> +<style> +div { + padding: 20px; +} +</style> +</head> +<body> + <div> + <input id="instant" type="button" value="instant no features" + onclick="window.open('about:blank', '_blank');"> + </div> + <div> + <input id="instant-popup" type="button" value="instant popup" + onclick="window.open('about:blank', '_blank', 'popup=true');"> + </div> + <div> + <input id="delayed" type="button" value="delayed no features" + onclick="setTimeout(() => window.open('about:blank', '_blank'), 100);"> + </div> + <div> + <input id="delayed-popup" type="button" value="delayed popup" + onclick="setTimeout(() => window.open('about:blank', '_blank', 'popup=true'), 100);"> + <div> + <div> + <a id="link-instant" href="" + onclick="window.open('about:blank', '_blank'); event.preventDefault()"> + instant no features + </a> + </div> + <div> + <a id="link-instant-popup" href="" + onclick="window.open('about:blank', '_blank', 'popup=true'); event.preventDefault()"> + instant popup + </a> + </div> + <div> + <a id="link-delayed" href="" + onclick="setTimeout(() => window.open('about:blank', '_blank'), 100); event.preventDefault()"> + delayed no features + </a> + </div> + <div> + <a id="link-delayed-popup" href="" + onclick="setTimeout(() => window.open('about:blank', '_blank', 'popup=true'), 100); event.preventDefault()"> + delayed popup + </a> + <div> + <div> + <input id="focus-check" type="button" value="check focus" + onclick="document.getElementById('focus-result').value = 'ok';"> + </div> + <div> + <input id="focus-result" type="text" value=""> + +<script type="text/javascript"> +document.addEventListener("keydown", event => { + if (event.key == "x") { + window.open('about:blank', '_blank'); + } + if (event.key == "y") { + window.open('about:blank', '_blank', 'popup=true'); + } +}); +</script> +</body> +</html> |