blob: 4833d8a17520432ab7dab9c9fec72f0b2b632ae3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<!DOCTYPE HTML>
<html>
<head>
<title>Web Storage</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>storage_local_security</h1>
<iframe id="frame" src="iframe/local_security_iframe.html" style="width: 0px; height: 0px;"></iframe>
<div id="log"></div>
<script>
var t1 = async_test('storage local security test');
iframeWindow = document.getElementById('frame').contentWindow;
setTimeout(function(){
try {
var errFlag =iframeWindow.localStorage.getItem("Security");
t1.step(function() {
assert_equals(errFlag, "true", 'SECURITY_ERR error is not raised.')
});
} catch (e) {
t1.step(function() {
assert_unreached('Error is raised.');
});
}
t1.done();
}, 500);
</script>
</body>
</html>
|