Ephemeral Storage

This page demonstrates how Brave should behave under different storage and shield configurations. This same page can be used to test all six relevant Brave configurations:

{Cross-site cookies blocked, Cookies blocked, Cookies allowed} x {Ephemeral storage on, Ephemeral storage off}

You can change the ephemeral storage setting by going to brave://flags and toggling the Enable Ephemeral Storage option. You can set the cookie blocking setting through shields.

Current Results

Storage API This Frame Local Frame Remote Frame Nested 1p Frame
Cookies
Local storage
Session storage
IndexDB

Test Description

This test has four parts. To start the test click the Start Test button above, and then check the above table under four cases. You should start these tests with a clean profile (so clearing all browsing data, or being in private browsing mode).

Expected Outcome

The below shows what the above table should look like, under each of the possible fix configurations.

Step 1: Initial Case

Just hit the button above and observe the table on this page.

This frame Local frame Remote frame Nested frame
cookies - - - -
local - - - -
session - - - -
indexdb

Step 2: Remote Page, Same Session

Open up the version of this page on the other origin. For the test to work correctly you must click the above link; visiting the page in any other manner will break the test.

Do not click the Start Test button on the new page.

This frame Local frame Remote frame Nested frame
cookies - - - -
local - - - -
session - - - -
indexdb

Step 3: Remote Page, New Session

Visit the remote page again, this time in an unrelated tab. Copy the URL below, open a new tab, and paste the URL in the address bar.

Do not click the Start Test button on the new page.

This frame Local frame Remote frame Nested frame
cookies - - - -
local - - - -
session - - - -
indexdb

Step 4: This Page, Same Session Case

Open another instance of this page. For the test to work correctly you must click the above link; visiting the page in any other manner will break the test.

Do not click the Start Test button in the new page, just read the table.

Similarly, do not close this page. Both versions of this page should be open for this case.

This frame Local frame Remote frame Nested frame
cookies - - - -
local - - - -
session - - - -
indexdb

Step 5: This Page, Different Session

Copy the URL below, create a new tab, and paste the URL in the address bar.

Make sure you stay in the same session (e.g., don't quit Brave).

Make sure you keep this page open too.

Do not click the Start Test button in the new page, just read the table.

This frame Local frame Remote frame Nested frame
cookies - - - -
local - - - -
session - - - -
indexdb

Step 6: New Page, Reset Session Case

Close all instances of this page (including the one you're reading now), wait 30 seconds, and then open this page again by copying the URL below into the address bar.

Make sure you stay in the same session (e.g., don't quit Brave).

Do not click the Start Test button in the new page, just read the table.

This frame Local frame Remote frame Nested frame
cookies - - - -
local - - - -
session - - - -
indexdb

Step 7: Clean Up

Click the Reset test button to clear all the storage values used in these tests.