Safari HSTS cookies not being deleted [Cookie v5.9.6, Safari v12.1 (14607.1.40.1.4), macOS 10.14.4 Beta (18E220a)]
-
alternatively, if you could update to the Beta I just released, and let me know if it works for you that would be great:
https://sweetpproductions.com/products/cookie5/CookieBeta.dmg -
@SweetP said in Safari HSTS cookies not being deleted [Cookie v5.9.6, Safari v12.1 (14607.1.40.1.4), macOS 10.14.4 Beta (18E220a)]:
you still need to restart Safari after removing the cache. did you also do that?
Yes. As I said, I run Cookie before I close the browser, then check Manage Website Data and note that the HSTS items are there. I then close the browser, run Cookie again so that Remove Now is greyed-out out for Tracking Cookies, Non-Favorites and Cache, and then re-open the browser. Before opening any tabs, I check Manage Website Data, and note that the same pesky HSTS items are still there.
-
ok,
can you try changing the contents of the file
clearSafariCacheMojave.sh
to this:
#!/bin/sh
/usr/bin/killall -KILL nsurlstoraged
find /private/var/folders \! -name "*SafariTechnologyPreview*" -name "*com.apple.Safari*" -exec rm -r {} \; 2>/dev/null
then quit Safari and clear the cache
-
@SweetP said in Safari HSTS cookies not being deleted [Cookie v5.9.6, Safari v12.1 (14607.1.40.1.4), macOS 10.14.4 Beta (18E220a)]:
ok,
can you try changing the contents of the file
clearSafariCacheMojave.sh
to this:
#!/bin/sh
/usr/bin/killall -KILL nsurlstoraged
find /private/var/folders \! -name "*SafariTechnologyPreview*" -name "*com.apple.Safari*" -exec rm -r {} \; 2>/dev/null
then quit Safari and clear the cache
Fantastic, the HSTS items are gone!
Prior to getting your last message, I decided to delete all my Favorites and close all pinned tabs to eliminate those things from consideration. One of my Favorites was netflix.com, and prior to making the change to the shell script file, the only things under Manage Website Data were 5 HSTS items and a netflix.com Media Keys item. The Media Keys item is still there after the change to the shell script fyi.
-
@SweetP said in Safari HSTS cookies not being deleted [Cookie v5.9.6, Safari v12.1 (14607.1.40.1.4), macOS 10.14.4 Beta (18E220a)]:
nice one,
Ill get an official update sorted out
Super! Thanks for getting to the bottom of it! Cheers!
As an aside, I used SessionRestore to get all my pinned tabs back. Something for the wish list would be the ability to restore the tabs to their pinned state. Another great feature would be a way to bulk unpin and/or close pinned Safari tabs. Are these types of things programmatically possible, or does Apple preclude this type of tab management?
-
@kitated said in Safari HSTS cookies not being deleted [Cookie v5.9.6, Safari v12.1 (14607.1.40.1.4), macOS 10.14.4 Beta (18E220a)]:
As an aside, I used SessionRestore to get all my pinned tabs back. Something for the wish list would be the ability to restore the tabs to their pinned state. Another great feature would be a way to bulk unpin and/or close pinned Safari tabs. Are these types of things programmatically possible, or does Apple preclude this type of tab management?
To be honest, theres no way of updating SessionRestore anymore...
The new Safari Extensions API's are worse than useless for anything other than adblockers... the old APIs also never had any hooks for knowing if a tab was pinned or not, otherwise I would have supported that years ago