mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
21 lines
453 B
HTML
21 lines
453 B
HTML
<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>
|