diff options
Diffstat (limited to 'dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html')
-rw-r--r-- | dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html | 15 |
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 000000000..40ff9d8af --- /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> |