blob: ed40e308a67bd0bee8dc21ab9b33de4adee0681a [file] [log] [blame]
This test verifies that a sandboxed iframe does not have access to any session storage, local storage or database.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Most of the PASS messages appear in frames, presented by DumpRenderTree after the main window.
PASS successfullyParsed is true
TEST COMPLETE
--------
Frame: '<!--framePath //<!--frame0-->-->'
--------
PASS window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1) threw exception SecurityError (DOM Exception 18): The operation is insecure..
PASS window.localStorage threw exception SecurityError (DOM Exception 18): The operation is insecure..
PASS window.sessionStorage threw exception SecurityError (DOM Exception 18): The operation is insecure..
--------
Frame: '<!--framePath //<!--frame1-->-->'
--------
PASS window.openDatabase('SandboxedIframeStorageAllowed', '1.0', '', 1) != null is true
PASS window.localStorage != null is true
PASS window.sessionStorage != null is true