summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_sessionStorage.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /browser/components/sessionstore/test/browser_sessionStorage.html
parentInitial commit. (diff)
downloadfirefox-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 'browser/components/sessionstore/test/browser_sessionStorage.html')
-rw-r--r--browser/components/sessionstore/test/browser_sessionStorage.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/browser/components/sessionstore/test/browser_sessionStorage.html b/browser/components/sessionstore/test/browser_sessionStorage.html
new file mode 100644
index 0000000000..f3664ebc9b
--- /dev/null
+++ b/browser/components/sessionstore/test/browser_sessionStorage.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>browser_sessionStorage.html</title>
+ </head>
+ <body>
+ <iframe id="iframe"></iframe>
+
+ <script type="text/javascript">
+ let isOuter = window == window.top;
+ let args = window.location.search.slice(1).split("&");
+ let rand = args[0];
+
+ if (isOuter) {
+ let iframe = document.getElementById("iframe");
+ let isSecure = args.indexOf("secure") > -1;
+ let scheme = isSecure ? "https" : "http";
+ iframe.setAttribute("src", scheme + "://example.com" + location.pathname + "?" + rand);
+ }
+
+ if (sessionStorage.length === 0) {
+ sessionStorage.test = (isOuter ? "outer" : "inner") + "-value-" + rand;
+ document.title = sessionStorage.test;
+ }
+ </script>
+ </body>
+</html>