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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html

Issue 2818173003: Indexed DB: Remove nonstandard IDBFactory.webkitGetDatabaseNames() (Closed)
Patch Set: Remove content_browsertest for wGDN Created 3 years, 7 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 function debug(msg) 7 function debug(msg)
8 { 8 {
9 var span = document.createElement("span"); 9 var span = document.createElement("span");
10 document.getElementById("console").appendChild(span); 10 document.getElementById("console").appendChild(span);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } else if (typeof _av == "undefined") 48 } else if (typeof _av == "undefined")
49 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception " : _ev) + ". Was undefined."); 49 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception " : _ev) + ". Was undefined.");
50 else 50 else
51 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception " : _ev) + ". Was " + _av + "."); 51 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception " : _ev) + ". Was " + _av + ".");
52 } 52 }
53 </script> 53 </script>
54 <script> 54 <script>
55 55
56 window.onload = function() { 56 window.onload = function() {
57 shouldThrow("window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1)", '"SecurityError: Failed to execute \'openDatabase\' on \'Window\': Acce ss to the WebDatabase API is denied in this context."'); 57 shouldThrow("window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1)", '"SecurityError: Failed to execute \'openDatabase\' on \'Window\': Acce ss to the WebDatabase API is denied in this context."');
58 shouldThrow("window.indexedDB.webkitGetDatabaseNames()", '"SecurityError: Fa iled to execute \'webkitGetDatabaseNames\' on \'IDBFactory\': access to the Inde xed Database API is denied in this context."');
59 shouldThrow("window.indexedDB.open('foo')", '"SecurityError: Failed to execu te \'open\' on \'IDBFactory\': access to the Indexed Database API is denied in t his context."'); 58 shouldThrow("window.indexedDB.open('foo')", '"SecurityError: Failed to execu te \'open\' on \'IDBFactory\': access to the Indexed Database API is denied in t his context."');
60 shouldThrow("window.indexedDB.deleteDatabase('foo')", '"SecurityError: Faile d to execute \'deleteDatabase\' on \'IDBFactory\': access to the Indexed Databas e API is denied in this context."'); 59 shouldThrow("window.indexedDB.deleteDatabase('foo')", '"SecurityError: Faile d to execute \'deleteDatabase\' on \'IDBFactory\': access to the Indexed Databas e API is denied in this context."');
61 shouldThrow("window.localStorage", '"SecurityError: Failed to read the \'loc alStorage\' property from \'Window\': The document is sandboxed and lacks the \' allow-same-origin\' flag."'); 60 shouldThrow("window.localStorage", '"SecurityError: Failed to read the \'loc alStorage\' property from \'Window\': The document is sandboxed and lacks the \' allow-same-origin\' flag."');
62 shouldThrow("window.sessionStorage", '"SecurityError: Failed to read the \'s essionStorage\' property from \'Window\': The document is sandboxed and lacks th e \'allow-same-origin\' flag."'); 61 shouldThrow("window.sessionStorage", '"SecurityError: Failed to read the \'s essionStorage\' property from \'Window\': The document is sandboxed and lacks th e \'allow-same-origin\' flag."');
63 shouldThrow("document.cookie",'"SecurityError: Failed to read the \'cookie\' property from \'Document\': The document is sandboxed and lacks the \'allow-sam e-origin\' flag."') ; 62 shouldThrow("document.cookie",'"SecurityError: Failed to read the \'cookie\' property from \'Document\': The document is sandboxed and lacks the \'allow-sam e-origin\' flag."') ;
64 } 63 }
65 64
66 </script> 65 </script>
67 </head> 66 </head>
68 <body> 67 <body>
69 <div id="console"></div> 68 <div id="console"></div>
70 </body> 69 </body>
71 </html> 70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698