diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /browser/components/sessionstore/test/browser_sessionStorage.html | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
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.html | 28 |
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> |