-
Notifications
You must be signed in to change notification settings - Fork 343
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
#303: Reset cookies in site manager #2654
Conversation
dfcbe63
to
fea2c87
Compare
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.
Thanks @rafeerahman this is a great feature. After re-reading the issue and comments, this doesn't quite seem to implement what most people are asking for.
It seems most people want a way to clear all the browsing data (cookies, cache, and local storage) for the entire container. It seems @dannycolin's PR is quite close to that already.
@dannycolin: Can you say more about why your PR is WIP? It seems ready to merge to me.
@rafeerahman: If @dannycolin's PR is ready, I think we should combine both of these PRs together. I think they both add a very nice features for reseting container data without having to destroy the container. If anything, I think you're change is even more advanced and sophisticated!
There's a limitation around the cache removal. According to the documentation on MDN, https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browsingData/removeCache
I Agree. The ability to remove per domain is great for a poweruser tool but it does increase the complexity of the UX/UI. I don't have a strong opinion on implementing it or not but I simply wanted to point it out since our frontend code is in need of some TLC :). |
@dannycolin I apologize if I'm wrong, but would you be able to use browsingData.remove() which does support limiting by RemovalOptions.cookieStoreId and browsingData.DataTypeSet ? https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browsingData/remove I inferred that browsingData.remove might work from this comment -> https://bugzilla.mozilla.org/show_bug.cgi?id=1353726#c13 |
@chetan-reddy Excerpt from the webextension API documentation itself: With |
I came here from cookie autodelete, having removed it because its no longer maintained. thanks in advance |
Yes thats whats being implemented. Cool idea, we can definitely look into adding it in that menu as well. |
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.
change (blocking): I'm afraid that clearing all site data is destructive enough that we should add a confirmation dialog to this? Or change the UI so that it's harder to accidentally do it.
The clear cookies UI isn't too bad ... the button is next to another data-destroying button so it's less likely that someone would accidentally click it. But it's still possible, so could we move it further away from the other button?
More concerning is how close the "Clear storage and cookies" item is to "Always open site in Container" item - which are 2 very different intentions.
I'm asking @maxxcrawford if there's a Firefox design guide to help us here.
@groovecoder For the confirmation dialog, I think we should use the same pattern that we use when a user deletes a container. |
Sorry, I don't know if this is the right place, but I was wondering if these changes will be implemented in the browser itself? Cause cookies can be deleted through the lock icon (to the left of the address bar) and also in the settings. I was clearing cookies through the lock icon for a while until I realized that it deletes cookies for all containers. It wasn't very obvious |
No. You would need to file a new bugzilla bug in the Data Sanitization component change the behavior of the lock icon item. |
…structive colors
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.
suggestion (non-blocking): This is an existing bug, so it shouldn't block this feature. It's just more obvious with this new feature.
For some reason, the .scrollable
block-size: 100%
directive causes the site assignment panel to ALWAYS have a scrollbar even when its not needed?
And the trash can icon is covered up by the scrollbar.
I couldn't find an existing bug for this, so I filed a new one here: #2662
It says that my email address will be public, is there any other issue tracker? |
@andsofine : Use an email alias. There are various options, but I like https://proton.me/pass/aliases |
Before submitting your pull request
npm test
and all tests passed.Description
Allows users to reset cookies for a site in the containers "Site manager"
Type of change
Select all that apply.
How to test:
Site manager cookie clearing:
clear-storage-confirmation-strings
Container storage clearing:
Tag issues related to this pull request:
L10n: mozilla-l10n/multi-account-containers-l10n#28
L10n: mozilla-l10n/multi-account-containers-l10n#29