summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/tabPrompts/openPromptOffTimeout.html
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/tabPrompts/openPromptOffTimeout.html')
-rw-r--r--browser/base/content/test/tabPrompts/openPromptOffTimeout.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/browser/base/content/test/tabPrompts/openPromptOffTimeout.html b/browser/base/content/test/tabPrompts/openPromptOffTimeout.html
new file mode 100644
index 000000000..e865c7872
--- /dev/null
+++ b/browser/base/content/test/tabPrompts/openPromptOffTimeout.html
@@ -0,0 +1,10 @@
+<body>
+This page opens an alert box when the page is hidden.
+<script>
+document.addEventListener("visibilitychange", () => {
+ if (document.hidden) {
+ alert("You hid my page!");
+ }
+}, false);
+</script>
+</body>