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

Unified Diff: LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html

Issue 23135009: Improve IDB module's SecurityError messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Only IDB. Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html
diff --git a/LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html b/LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html
index 9ff0288260ce40d5d3fa8e78c4664e54b2e3615a..4e609e7f027c55969d8b0e1037c881f9268aba06 100644
--- a/LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html
+++ b/LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html
@@ -55,6 +55,9 @@ function shouldThrow(_a, _e)
window.onload = function() {
shouldThrow("window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1)");
+ shouldThrow("window.indexedDB.webkitGetDatabaseNames()", '"SecurityError: Failed to execute \'getDatabaseNames\' on \'IDBFactory\': access to the Indexed Database API is denied in this context."');
+ shouldThrow("window.indexedDB.open('foo')", '"SecurityError: Failed to execute \'open\' on \'IDBFactory\': access to the Indexed Database API is denied in this context."');
+ shouldThrow("window.indexedDB.deleteDatabase('foo')", '"SecurityError: Failed to execute \'deleteDatabase\' on \'IDBFactory\': access to the Indexed Database API is denied in this context."');
shouldThrow("window.localStorage", '"SecurityError: Access to \'localStorage\' is denied for this document. The document is sandboxed and lacks the \'allow-same-origin\' flag."');
shouldThrow("window.sessionStorage", '"SecurityError: Access to \'sessionStorage\' is denied for this document. The document is sandboxed and lacks the \'allow-same-origin\' flag."');
shouldThrow("document.cookie",'"SecurityError: Access to \'cookie\' is denied for this document. The document is sandboxed and lacks the \'allow-same-origin\' flag."') ;
« no previous file with comments | « no previous file | LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698