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

Unified Diff: LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt

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
Index: LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt
diff --git a/LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt b/LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt
index fc98835a2e943748cc66092ff15be2c4ca9a39ce..bc6473826a9cb99f820a2e54767d1a4dc53b0123 100644
--- a/LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt
+++ b/LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt
@@ -15,6 +15,9 @@ TEST COMPLETE
Frame: '<!--framePath //<!--frame0-->-->'
--------
PASS window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1) threw exception "SecurityError: An attempt was made to break through the security policy of the user agent.".
+PASS window.indexedDB.webkitGetDatabaseNames() threw exception "SecurityError: Failed to execute 'getDatabaseNames' on 'IDBFactory': access to the Indexed Database API is denied in this context.".
+PASS window.indexedDB.open('foo') threw exception "SecurityError: Failed to execute 'open' on 'IDBFactory': access to the Indexed Database API is denied in this context.".
+PASS window.indexedDB.deleteDatabase('foo') threw exception "SecurityError: Failed to execute 'deleteDatabase' on 'IDBFactory': access to the Indexed Database API is denied in this context.".
PASS window.localStorage threw exception "SecurityError: Access to 'localStorage' is denied for this document. The document is sandboxed and lacks the 'allow-same-origin' flag.".
PASS window.sessionStorage threw exception "SecurityError: Access to 'sessionStorage' is denied for this document. The document is sandboxed and lacks the 'allow-same-origin' flag.".
PASS document.cookie threw exception "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 | « LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html ('k') | Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698