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

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

Issue 23163004: Improve 'document.cookie' access check exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 4 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 This test verifies that a sandboxed iframe does not have access to any session s torage, local storage or database. 1 This test verifies that a sandboxed iframe does not have access to any session s torage, local storage or database.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Most of the PASS messages appear in frames, presented by DumpRenderTree after th e main window. 6 Most of the PASS messages appear in frames, presented by DumpRenderTree after th e main window.
7 7
8 8
9 PASS successfullyParsed is true 9 PASS successfullyParsed is true
10 10
11 TEST COMPLETE 11 TEST COMPLETE
12 12
13 13
14 -------- 14 --------
15 Frame: '<!--framePath //<!--frame0-->-->' 15 Frame: '<!--framePath //<!--frame0-->-->'
16 -------- 16 --------
17 PASS window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1) threw exception "SecurityError: An attempt was made to break through the security pol icy of the user agent.". 17 PASS window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1) threw exception "SecurityError: An attempt was made to break through the security pol icy of the user agent.".
18 PASS window.localStorage threw exception "SecurityError: Access to 'localStorage ' is denied for this document. The document is sandboxed and lacks the 'allow-sa me-origin' flag.". 18 PASS window.localStorage threw exception "SecurityError: Access to 'localStorage ' is denied for this document. The document is sandboxed and lacks the 'allow-sa me-origin' flag.".
19 PASS window.sessionStorage threw exception "SecurityError: Access to 'sessionSto rage' is denied for this document. The document is sandboxed and lacks the 'allo w-same-origin' flag.". 19 PASS window.sessionStorage threw exception "SecurityError: Access to 'sessionSto rage' is denied for this document. The document is sandboxed and lacks the 'allo w-same-origin' flag.".
20 PASS document.cookie threw exception "SecurityError: Access to 'cookie' is denie d for this document. The document is sandboxed and lacks the 'allow-same-origin' flag.".
20 21
21 22
22 -------- 23 --------
23 Frame: '<!--framePath //<!--frame1-->-->' 24 Frame: '<!--framePath //<!--frame1-->-->'
24 -------- 25 --------
25 PASS window.openDatabase('SandboxedIframeStorageAllowed', '1.0', '', 1) != null is true 26 PASS window.openDatabase('SandboxedIframeStorageAllowed', '1.0', '', 1) != null is true
26 PASS window.localStorage != null is true 27 PASS window.localStorage != null is true
27 PASS window.sessionStorage != null is true 28 PASS window.sessionStorage != null is true
29 PASS document.cookie != null is true
28 30
OLDNEW
« no previous file with comments | « LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698