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/link_in_tab_title_and_url_prefilled.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/link_in_tab_title_and_url_prefilled.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/browser/base/content/test/tabs/link_in_tab_title_and_url_prefilled.html b/browser/base/content/test/tabs/link_in_tab_title_and_url_prefilled.html new file mode 100644 index 0000000000..a7561f4099 --- /dev/null +++ b/browser/base/content/test/tabs/link_in_tab_title_and_url_prefilled.html @@ -0,0 +1,30 @@ +<style> +a { display: block; } +</style> + +<a id="wait-a-bit--blank-target" href="wait-a-bit.sjs" target="_blank">wait-a-bit - _blank target</a> +<a id="wait-a-bit--other-target" href="wait-a-bit.sjs" target="other">wait-a-bit - other target</a> +<a id="wait-a-bit--by-script">wait-a-bit - script</a> +<a id="wait-a-bit--no-target" href="wait-a-bit.sjs">wait-a-bit - no target</a> + +<a id="request-timeout--blank-target" href="request-timeout.sjs" target="_blank">request-timeout - _blank target</a> +<a id="request-timeout--other-target" href="request-timeout.sjs" target="other">request-timeout - other target</a> +<a id="request-timeout--by-script">request-timeout - script</a> +<a id="request-timeout--no-target" href="request-timeout.sjs">request-timeout - no target</a> + +<a id="blank-page--blank-target" href="about:blank" target="_blank">about:blank - _blank target</a> +<a id="blank-page--other-target" href="about:blank" target="other">about:blank - other target</a> +<a id="blank-page--by-script">blank - script</a> +<a id="blank-page--no-target" href="about:blank">about:blank - no target</a> + +<script> +document.getElementById("wait-a-bit--by-script").addEventListener("click", () => { + window.open("wait-a-bit.sjs", "_blank"); +}) +document.getElementById("request-timeout--by-script").addEventListener("click", () => { + window.open("request-timeout.sjs", "_blank"); +}) +document.getElementById("blank-page--by-script").addEventListener("click", () => { + window.open("about:blank", "_blank"); +}) +</script> |