Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Side by Side Diff: LayoutTests/http/tests/security/no-indexeddb-from-sandbox.html

Issue 415753002: Deprecate the webkit-prefixed standard IndexedDB entry points (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More rebaselines for console warnings in property enumerating tests Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <script> 1 <script>
2 if (window.testRunner) 2 if (window.testRunner)
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 </script> 4 </script>
5 <iframe sandbox="allow-scripts" 5 <iframe sandbox="allow-scripts"
6 src="data:text/html, 6 src="data:text/html,
7 <script> 7 <script>
8 var db = window.webkitIndexedDB;
9 try { 8 try {
10 db.open('test'); 9 indexedDB.open('test');
11 alert('FAIL: db.open() should throw a SECURITY_ERR in a sandbox .'); 10 alert('FAIL: indexedDB.open() should throw a SECURITY_ERR in a sandbox.');
12 } catch (e) { 11 } catch (e) {
13 if (e.code === DOMException.SECURITY_ERR) 12 if (e.code === DOMException.SECURITY_ERR)
14 alert('PASS: db.open() threw a SECURITY_ERR!'); 13 alert('PASS: indexedDB.open() threw a SECURITY_ERR!');
15 else 14 else
16 alert('FAIL: db.open() threw a ' + e.name); 15 alert('FAIL: indexedDB.open() threw a ' + e.name);
17 } 16 }
18 </script>" 17 </script>"
19 ></iframe> 18 ></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698