Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / no-indexeddb-from-sandbox.html
blobe74ff010781a02ec9281337217d057a6d00dfda8
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
4 </script>
5 <iframe sandbox="allow-scripts"
6 src="data:text/html,
7 <script>
8 try {
9 indexedDB.open('test');
10 console.log('FAIL: indexedDB.open() should throw a SECURITY_ERR in a sandbox.');
11 } catch (e) {
12 if (e.code === DOMException.SECURITY_ERR)
13 console.log('PASS: indexedDB.open() threw a SECURITY_ERR!');
14 else
15 console.log('FAIL: indexedDB.open() threw a ' + e.name);
17 </script>"
18 ></iframe>