cannot auto delete on safari exit
-
-
@SweetP said in cannot auto delete on safari exit:
@tuancc said in cannot auto delete on safari exit:
"add a website as a favourite." on safari or cookieapp?
inside Cookie
i tried on macos12 and macos13, and still not work.
But I can manually click the [remove] button to remove cookies.
It seems that cookieapp cannot successfully monitor safari quiting.
-
@SweetP said in cannot auto delete on safari exit:
@tuancc said in cannot auto delete on safari exit:
Can I ask, how CookieApp monitors the safari browser quiting.
using the macOS native API:
NSWorkspaceDidTerminateApplicationNotification
is there any log when cookieapp received notification "NSWorkspaceDidTerminateApplicationNotification" ?
-
@SweetP said in cannot auto delete on safari exit:
do you have any other browsers installed in your Mac
if so, do they work on Quit?i test for google chrome, it works.
when i quit chrome, it auto delete all cookies, and show a notification:
-
It seems to be a problem with the system language, if I set the system language to English, cookieapp can monitor safari quiting.
But as long as the system language is changed to another language, the application name of safari will change, it will not work.
-
@tuancc there is a slight difference in my checks for when a browser has been quit
Ive updated the code to be more reliable,
can you let me know if this version works better for you:
https://send.tresorit.com/a#jY-LIMpnXwe94BK-mHu7XQ -
@tuancc said in cannot auto delete on safari exit:
It seems to be a problem with the system language, if I set the system language to English, cookieapp can monitor safari quiting.
good spotting!
thats also exactly what I assumed,
the version I just uploaded fixes that -
@SweetP said in cannot auto delete on safari exit:
@tuancc there is a slight difference in my checks for when a browser has been quit
Ive updated the code to be more reliable,
can you let me know if this version works better for you:
https://send.tresorit.com/a#jY-LIMpnXwe94BK-mHu7XQgreat! it works for non-english system!
-
and there is a small problem, that is, when I quit safari, cookieapp immediately starts to delete cookies, but the notification will be delayed, and it takes about 5 seconds for me to receive the notification from cookieapp.
I'm not sure if this is normal behavior.
-
@tuancc said in cannot auto delete on safari exit:
and there is a small problem, that is, when I quit safari, cookieapp immediately starts to delete cookies, but the notification will be delayed, and it takes about 5 seconds for me to receive the notification from cookieapp.
I'm not sure if this is normal behavior.
Cookie actually does have a small delay before clearing data on Browser quit - to avoid any corruption.
It also clears data two times, to make sure everything is properly cleared
-
There is only one website's cookies in safari, when I quit safari, I see that the list of cookies in cookieapp is deleted within one second, but the notification is not shown until about five seconds later. So the notification is not a small delay.
I raise this question just to worry about one thing, I often restart the safari browser, maybe restart it 2 seconds after quitting, I don't know what will happen if the cookieapp is still in the process of deleting data.
Or should I wait for 5 seconds to receive the cookieapp notification before launching the safari browser. -
@SweetP said in cannot auto delete on safari exit:
The notification is posted after all data has been removed, so that would be the optimal time to restart.
that's a good idea~
But I'm still confused, when I click [Delete Unwanted Data] manually, I will get a notification within 2 seconds, but when I quit safari, the cookieapp starts working immediately, but I have to wait at least 5 seconds Notifications can only be received after that. I don't understand what the difference is here.
-
When the browser is quit, some data can still be written to disk by the browser. So cookie waits a little before starting to remove the data.
It’s perhaps not as necessary now with modern Mac’s with SSDs… but a lot of ppl still run older computers with HDDs
-
@SweetP said in cannot auto delete on safari exit:
When the browser is quit, some data can still be written to disk by the browser. So cookie waits a little before starting to remove the data.
It’s perhaps not as necessary now with modern Mac’s with SSDs… but a lot of ppl still run older computers with HDDs
okay, i understand. CookieApp is really a nice app. i tried many cookie block/clean app. but all bad.
some only has a blacklist mode, some only can clean non-httponly cookies. some clean cookies during visiting website.
For most modern websites, js/css/cookies are a necessary.
Therefore, it is not possible to simply prohibit the writing of cookies. Nor is it possible to clear cookies during the process of visiting the website. It is also not possible to simply provide a blacklist mode for users to choose the websites that need to be blocked. So the best way is:
1: Clear after visiting the website (such as when exiting the browser).
2: Provide a whitelist mode for users to choose trusted websites.Only in this way can we strike a balance between privacy and convenience. And cookieapp fully meets these requirements, you are a genius.