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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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/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 d5cae0bca36f775217f4fc7fb2ec31d330c98b0b..35f54e557d4540b34e4ce1f98f2729d87ec44cdf 100644
--- a/LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html
+++ b/LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html
@@ -55,12 +55,12 @@ function shouldThrow(_a, _e)
window.onload = function() {
shouldThrow("window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1)", '"SecurityError: Failed to execute \'openDatabase\' on \'Window\': Access to the WebDatabase API is denied in this context."');
- 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.webkitGetDatabaseNames()", '"SecurityError: Failed to execute \'webkitGetDatabaseNames\' 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."') ;
+ shouldThrow("window.localStorage", '"SecurityError: Failed to read the \'localStorage\' property from \'Window\': The document is sandboxed and lacks the \'allow-same-origin\' flag."');
+ shouldThrow("window.sessionStorage", '"SecurityError: Failed to read the \'sessionStorage\' property from \'Window\': The document is sandboxed and lacks the \'allow-same-origin\' flag."');
+ shouldThrow("document.cookie",'"SecurityError: Failed to read the \'cookie\' property from \'Document\': The document is sandboxed and lacks the \'allow-same-origin\' flag."') ;
}
</script>

Powered by Google App Engine
This is Rietveld 408576698