-
Notifications
You must be signed in to change notification settings - Fork 905
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
Brave ephemeral storage flag #7473
Conversation
Instead of using ephemeral storage for all unblocked third-party frame storage, only use ephemeral storage when third-party storage is blocked. This means that turning on the ephemeral storage flag will always replaced blocked storage in third-party frames with an ephemeral version, regardless of other settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. I think it makes sense to rebase and to merge all of these commits into one before sending on to be reviewed by core Brave reviewers, with you as the commit author.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. It's checked inside RestrictedCookieManager::CookieListToGetAllForUrlCallback.
if (url::Origin::Create(url) == top_frame_origin) | ||
return false; | ||
return true; | ||
return !cookie_settings->IsCookieAccessAllowed( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrobinson Do you think we should check IsCookieAccessOrEphemeralCookiesAccessAllowed
first in this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to add a DCHECK
here for that? If so, I think that'd be just fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant
if (!IsCookieAccessOrEphemeralCookiesAccessAllowed())
return false;
RestrictedCookieManager::CookieListToGetAllForUrlCallback will check it. So no need to add it here.
Make sense. Sorry for the confusion. Let's move to #7207 I'll close this one:) |
Resolves
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed).Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on.
Test Plan: