summaryrefslogtreecommitdiffstats
path: root/devtools/client/storage/test/storage-secured-iframe.html
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-02 16:38:25 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-02 16:38:25 +0100
commit26e53627d6922b3b965afd76fc5d72e3cc1d9ba5 (patch)
treef894fd8f5077620e694058995b180c6d1c60dca6 /devtools/client/storage/test/storage-secured-iframe.html
parentf0175fb7abd0aad3054236fb1a0cc430c6d05db9 (diff)
downloadUXP-26e53627d6922b3b965afd76fc5d72e3cc1d9ba5.tar
UXP-26e53627d6922b3b965afd76fc5d72e3cc1d9ba5.tar.gz
UXP-26e53627d6922b3b965afd76fc5d72e3cc1d9ba5.tar.lz
UXP-26e53627d6922b3b965afd76fc5d72e3cc1d9ba5.tar.xz
UXP-26e53627d6922b3b965afd76fc5d72e3cc1d9ba5.zip
moebius#337: Added option to remove all session cookies for a specific domain
Issue #31 https://github.com/MoonchildProductions/moebius/pull/337
Diffstat (limited to 'devtools/client/storage/test/storage-secured-iframe.html')
-rw-r--r--devtools/client/storage/test/storage-secured-iframe.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/devtools/client/storage/test/storage-secured-iframe.html b/devtools/client/storage/test/storage-secured-iframe.html
index 8424fd4cd..9e1ef60a0 100644
--- a/devtools/client/storage/test/storage-secured-iframe.html
+++ b/devtools/client/storage/test/storage-secured-iframe.html
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML>
+<!DOCTYPE HTML>
<html>
<!--
Iframe for testing multiple host detetion in storage actor
@@ -9,7 +9,10 @@ Iframe for testing multiple host detetion in storage actor
<body>
<script type="application/javascript;version=1.7">
"use strict";
+let cookieExpiresTime = 2000000000000;
document.cookie = "sc1=foobar;";
+document.cookie = "sc2=foobar-2; expires=" +
+ new Date(cookieExpiresTime).toGMTString() + ";";
localStorage.setItem("iframe-s-ls1", "foobar");
sessionStorage.setItem("iframe-s-ss1", "foobar-2");
dump("added cookies and storage from secured iframe\n");