Comments (4)
Hi,
whether it's a HttpOnly cookie or not, you only need these arguments for the remove() function:
let params = {
url: vAPI.getHostUrl(cookie),
name: cookie.name,
storeId: cookie.storeId,
};
Take a look at the function getHostUrl() to forge your url with the attributes cookie.secure, cookie.domain, cookie.path.
You can add an additional key if First Party Domain is activated on the cookie you want to delete:
firstPartyDomain
from cookie-quick-manager.
Interesting, that doesn't look very much different than what I have in my extension except mine is unable to remove HttpOnly cookies:
https://github.com/iamadamdev/bypass-paywalls-firefox/blob/master/background.js#L258
maybe the issue is something else then.
from cookie-quick-manager.
First, don't forget that firstPartyDomain is mandatory if the browser has first-party isolation enabled. Your code does not handle this case.
(https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/cookies/remove)
Then, pay attention to your inline condition that does not do what you would like it to do:
var a = true;
var b = a ? "https://" : "http://" + "path";
console.log(b);
>> "https://"
var b = (a ? "https://" : "http://") + "path";
console.log(b);
>> "https://path"
hoping that your bug is now resolved :)
from cookie-quick-manager.
Thanks so much! that fixed it.
from cookie-quick-manager.
Related Issues (20)
- [FF > 106.0.1] Plugin does not show ANY cookies anymore HOT 3
- Delete current site cookies (including subdomains)
- Option to remove "Delete current Context Cookies" HOT 2
- Is this project still active ? HOT 4
- Cookies still appear in Firefox menu
- Broken UI when attempting to "Delete current Context Cookies..." HOT 1
- VERY URGENT UPDATE NEEDED HOT 1
- With firefox less than fullscreen, trashcan icon at bottom off window is offscreen
- Add the option of delete all cookies of a context when restart browser
- Add option to delete `Session storage`
- Can you put the trash can at the top of the page by the refresh?
- No icon on Lubuntu
- Add option to delete all indexdb for site as well as localstorage
- Drag and Drop files for load them?
- Feature request: Please allow the import of cookies to a certain (temporary) container HOT 1
- Feature request: ability to hide "Delete current Context Cookies" so I don't accidentally use it
- question HOT 1
- New User ... Cannot install in Fx 121 HOT 5
- Delete current context cookies button is almost hidden
- issue opening google accounts with cookies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookie-quick-manager.