summaryrefslogtreecommitdiffstats
path: root/dom/browser-element/mochitest/file_browserElement_SetVisibleFrames_Inner.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/browser-element/mochitest/file_browserElement_SetVisibleFrames_Inner.html')
-rw-r--r--dom/browser-element/mochitest/file_browserElement_SetVisibleFrames_Inner.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/dom/browser-element/mochitest/file_browserElement_SetVisibleFrames_Inner.html b/dom/browser-element/mochitest/file_browserElement_SetVisibleFrames_Inner.html
new file mode 100644
index 000000000..8f9b871d6
--- /dev/null
+++ b/dom/browser-element/mochitest/file_browserElement_SetVisibleFrames_Inner.html
@@ -0,0 +1,18 @@
+<html>
+<body>
+<script>
+
+var name = location.search.substring(1);
+addEventListener('load', function() {
+ setTimeout(function() {
+ alert(name + ':ready');
+ }, 0);
+});
+
+addEventListener('visibilitychange', function() {
+ alert(name + ':' + (document.hidden ? 'hidden' : 'visible'));
+});
+
+</script>
+</body>
+</html>