summaryrefslogtreecommitdiffstats
path: root/dom/browser-element/mochitest/file_browserElement_PrivateBrowsing.html
blob: 40ff9d8af88c5db82f989a395d7654e2fd3acfa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>