-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement 1p Ephemeral Storage Functionality (functionality) #15906
Comments
"Nice to have" is kind of a problem because I'm not sure what needs to be validated here or what happens to those things if we only implement part of this and do the rest later. Can we either create sub-tickets for this that exactly match the functionality in each PR or narrow down exactly what we are/have implemented? |
This is currently a hidden feature behind a flag, but it can be tested:
Also a |
Verified
|
Brave | 1.32.74 Chromium: 95.0.4638.54 (Official Build) dev (x86_64) |
---|---|
Revision | d31a821ec901f68d0d34ccdbaea45b4c86ce543e-refs/branch-heads/4638@{#871} |
OS | macOS Version 11.6 (Build 20G165) |
Steps:
- new profile
- launched Brave
- enabled
First Party Ephemeral Storage
feature viabrave://flags
- added
[*.]yandex.com
toAlways clear cookies when windows are closed
, inbrave://settings/cookies
- opened
https://yandex.com/internet
5x (5 tabs) - noted the value of
Content
for the above - closed all tabs and windows (but not Brave)
- opened
https://yandex.com/internet
in a single tab - noted the value of
Content
for the above
Confirmed Content
is different for the 1) group of 5 tabs with the same URL 2) same URL in a single tab
example | example |
---|---|
@stephendonner thank you! That's the result I expect, but not the result I'd like to see :) I should've written more detailed explanation of what we're trying to test.
We want to test the 1PES logic:
So in the end we want to see ephemeral cookies, but we cannot see them in the browser UI. To solve this, we can add custom test pages or we can use a website which shows its cookie values right on the page. The https://yandex.com/internet is a just an example of a website that does that: To test 1PES we need to make sure that the cookie value is same while at least one of the tabs is opened, and after closing/reopening tabs, the ephemeral cookie value should be deleted and a website should create a new cookie value. |
Verified
|
Brave | 1.32.77 Chromium: 95.0.4638.54 (Official Build) dev (x86_64) |
---|---|
Revision | d31a821ec901f68d0d34ccdbaea45b4c86ce543e-refs/branch-heads/4638@{#871} |
OS | macOS Version 11.6 (Build 20G165) |
Steps:
- new profile
- launch Brave
- enabled
First Party Ephemeral Storage
feature inbrave://flags
- added
[*.]yandex.com
toAlways clear cookies when windows are closed
, inbrave://settings/cookies
- loaded
yandex.com/internet
in 5 new tabs - noted the value for
yandexuid
was83902131634853864
, across all 5 tabs - closed all tabs (but NOT the browser)
- loaded
yandex.com/internet
again in a single tab - noted the value for
yandexuid
was3676166601634853957
example | example | example | example |
---|---|---|---|
Verified PASSED
using
Brave | 1.32.78 Chromium: 95.0.4638.54 (Official Build) beta (64-bit) |
---|---|
Revision | d31a821ec901f68d0d34ccdbaea45b4c86ce543e-refs/branch-heads/4638@{#871} |
OS | Linux |
Steps:
- new profile
- launch Brave
- enabled
First Party Ephemeral Storage
feature inbrave://flags
- added
[*.]yandex.com
toAlways clear cookies when windows are closed
, inbrave://settings/cookies
- loaded
yandex.com/internet
in 5 new tabs - noted the value for
yandexuid
was1992171635195119
, across all 5 tabs - closed all tabs (but NOT the browser)
- loaded
yandex.com/internet
again in a single tab - noted the value for
yandexuid
was5004146051635195281
example | example | example | example |
---|---|---|---|
Verification passed on
Brave | 1.32.82 Chromium: 95.0.4638.54 (Official Build) dev (64-bit)
-- | --
Revision | d31a821ec901f68d0d34ccdbaea45b4c86ce543e-refs/branch-heads/4638@{#871}
OS | Windows 10 Version 21H1 (Build 19043.1288)
Logged a follow up issue #19006
Steps:
- new profile
- launch Brave
- added
[*.]yandex.com
toAlways clear cookies when windows are closed
, inbrave://settings/cookies
- loaded
yandex.com/internet
in 5 new tabs - noted the value for
yandexuid
was965761951635271465
, across all 5 tabs - closed all tabs (but NOT the browser)
- loaded
yandex.com/internet
again in a single tab - noted the value for
yandexuid
is still same796542931635271605
example | example | example | example | example |
---|---|---|---|---|
@goodov sorry for the delay, and thanks for clarifying; how's the above look, now, verification-wise? |
Yep, this is much better, thank you! |
@goodov: I've tried to find the Android corollary, here, but so far am not finding it. I'm not seeing a place where we can add the exception, noted in step 3, above, "added We have "Close tabs on exit," but that's for browser-session behavior, as is |
Huh, you're right. This option is not available on Android, but it's just a UI limitation, under the hood it should work. I guess we have to add this setting then. |
|
It would be useful to be able to have Brave visit a site where 1p-storage was ephemeral, in the same way 3p storage is currently by default.
The functionality described here is not intended to cover the settings and options Brave would expose to users (that might or might not change), only to describe the needed underlying capabilities. How 1p ephemeral storage capabilities could be exposed to users, or deployed to benefit users, is covered in other issues (e.g., #15097, #15018, etc)
This would include the following necessary functionality:
NetworkIsolationKey
partitioned storage (HTTP cache, service workers, network cache, etc) would be similarly partitionedNice to have:
The text was updated successfully, but these errors were encountered: