summaryrefslogtreecommitdiff
path: root/dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html')
-rw-r--r--dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html b/dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html
new file mode 100644
index 0000000000..40ff9d8af8
--- /dev/null
+++ b/dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+<script>
+
+if (location.href.indexOf("clear=true") != -1) {
+ localStorage.removeItem("foo");
+ alert("CLEAR");
+} else {
+ var initialValue = localStorage.getItem("foo") || "EMPTY";
+ localStorage.setItem("foo", "bar");
+ alert(initialValue);
+}
+</script>
+</body>
+</html>