summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html')
-rw-r--r--dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html b/dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html
new file mode 100644
index 000000000..de42e6bb9
--- /dev/null
+++ b/dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html
@@ -0,0 +1,20 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>localStorage cookies settings test</title>
+
+<script type="text/javascript" src="interOriginFrame.js"></script>
+
+</head>
+<body>
+<script type="text/javascript">
+ try {
+ localStorage.setItem("contentkey", "test-value");
+ ok(false, "Setting localStorageItem should throw a security exception");
+ } catch(ex) {
+ is(ex.name, "SecurityError");
+ }
+
+ finishTest();
+</script>
+</body>
+</html>