News for hackers. Stuff that matters.
Re:Chrome “clear cookies on exit” feature does not work by fouc on Sunday March 24, 2019 @06:44AM (#19475578)
Perhaps we need a way to delete chrome, re-install it, and then re-populate w/ the exact cookies we want persisted. Nothing else. No chance for web storage or other hidden/zombie cookies. This could be done every time the app is closed.

Quite frankly we need to stop trusting apps, particularly browsers at all. ;)

Re:Chrome “clear cookies on exit” feature does not work by stevekemp on Sunday March 24, 2019 @07:56AM (#19475827)
I use firefox, and find this function useful:

     # Open a new firefox instance, with a temporary profile
     function firefox_temp() {
        dir=$(mktemp -d)
        echo "Profile directory: ${dir}"
        firefox --new-instance --profile ${dir}
        echo "Cleaning up .."
        rm -rf ${dir}
     }
I'm not familiar with Chrome, but perhaps there is a similar "profile-directory" argument you can point to a temporary location?
Re:Chrome “clear cookies on exit” feature does not work by josephorjoe on Sunday March 24, 2019 @09:08AM (#19476117)
You can use the `--user-data-dir` arg to specify a profile location when opening chrome. So, on a mac, something like:

  open -Fna /Applications/Google\ Chrome.app \
  --args --user-data-dir=/my_temp_profile_dir/my_tmp_profile
If you copy an existing profile to `my_tmp_profile` chrome will use that, otherwise it behaves like a new setup.
Re:Chrome “clear cookies on exit” feature does not work by Ysx on Sunday March 24, 2019 @08:55AM (#19476066)
That's interesting... does it behave much differently to private windows?
Re:Chrome “clear cookies on exit” feature does not work by stevekemp on Sunday March 24, 2019 @01:24PM (#19477508)
If we assume that the private-mode is "secure", then I suspect there's probably not a huge difference in practice.

But this way I'm very certain extensions, history, local-storage, etc, are absolutely not available.

(To be honest I tend to use this mostly avoid caching, and other things. Useful when you're testing redirects and new designs.)

Re:Chrome “clear cookies on exit” feature does not work by tqkxzugoaupvwqr on Sunday March 24, 2019 @07:37AM (#19475752)
There is a flaw in your proposal: Deinstalling doesn’t necessarily ensure all program data is removed (at least on desktop OSes). When you reinstall the program, your previous program data can still exist and be used as is. So the persistent cookies can actually be super persistent in that they survive the program removal.
Re:Chrome “clear cookies on exit” feature does not work by oftenwrong on Sunday March 24, 2019 @10:20AM (#19476462)
Some people run Chrome in a container:

https://github.com/jessfraz/dockerfiles/blob/master/chrome/s...

It could be configured to run in a totally clean container to keep the browser reasonably isolated from the host system.

Of course, the truly harcore can use Qubes OS and spawn a disposable VM to browse the web from:

https://www.qubes-os.org/doc/disposablevm/

Re:Chrome “clear cookies on exit” feature does not work by fouc on Sunday March 24, 2019 @10:37AM (#19476569)
Re:Chrome “clear cookies on exit” feature does not work by frou_dh on Sunday March 24, 2019 @07:49AM (#19475800)
IIRC Chrome installs some kind of persistent daemon that is entirely separate from the application itself. Keystone Agent or something like that.
Re:Chrome “clear cookies on exit” feature does not work by ultrafez on Sunday March 24, 2019 @09:35AM (#19476248)
I've come across this before. I don't know what its full responsibilities are, but I know it's part of the Chrome update process.

I came across it when I was trying to get two totally separate Chrome installs working on one machine (using https://github.com/djbclark/chrome-schismator), in such a way that they can run in parallel, update in parallel, each totally isolated from one another. It seems as though it's not possible to have two Chrome installs update themselves separately due to the Keystone application only being able to store one reference to a Chrome install at a time, meaning that the other Chrome instance never detects that it's out of date.

Re:Chrome “clear cookies on exit” feature does not work by GrayShade on Sunday March 24, 2019 @07:37AM (#19475756)
Perhaps you should use Firefox.
Re:Chrome “clear cookies on exit” feature does not work by tssva on Sunday March 24, 2019 @08:21AM (#19475916)
Perhaps Firefox should finally get around to not being a destroyer of performance, stability and battery life on a large subset of MacBooks, so people such as myself can use it.
Re:Chrome “clear cookies on exit” feature does not work by mrweasel on Sunday March 24, 2019 @09:19AM (#19476173)
I honestly never had that problem, sure performance wasn't great 5 or 6 years ago. I've used Firefox as my primary browser for at least five years, switching from Chrome when performance started to improve for Firefox.
Re:Chrome “clear cookies on exit” feature does not work by simula67 on Sunday March 24, 2019 @10:05AM (#19476393)
Agreed. When I open up Brave on my phone to use Google Newsreel or something, I feel that it is a bit more snappy than Firefox. Firefox also crashes more often than I would like on my ArchLinux personal laptop. However, Firefox rendering speed has caught up with Chrome since the Quantum update, maybe the rest will catch up also.
Re:Chrome “clear cookies on exit” feature does not work by OJFord on Sunday March 24, 2019 @09:48AM (#19476312)
I have Firefox (with accidentally permanently 50+ tabs open) on a touch bar MBP and it's fine.
Re:Chrome “clear cookies on exit” feature does not work by celsoazevedo on Sunday March 24, 2019 @10:46AM (#19476623)
It doesn't seem to affect everyone/every machine.
Re:Chrome “clear cookies on exit” feature does not work by GalacticDomin8r on Sunday March 24, 2019 @10:58AM (#19476685)
Then it doesn't seem fair to blanket blame FF on macOS. A few more details would go a long way to legitimize the complaint.
Re:Chrome “clear cookies on exit” feature does not work by celsoazevedo on Sunday March 24, 2019 @03:13PM (#19478151)
If a user tests Chrome and Firefox and only Firefox has bad performance/battery life, they'll blame Firefox.

Mozilla is aware - there are a few bugzilla reports open about this - but like most Firefox bugs it takes months or years to be fixed. Last year (nov/dec?) they fixed something that improved battery life, but it's still worse than Chrome for me.

Re:Chrome “clear cookies on exit” feature does not work by tssva on Monday March 25, 2019 @12:03AM (#19480236)
Mozilla has been tracking cpu utilization/power consumption issues with certain MacBooks since Quantum was released. It seems to mostly affect MacBook Retinas without discrete GPUs. From the big tracker it appears the latest theory is it caused by an interaction between Firefox's compositor and the macOS compositor.
Re:Chrome “clear cookies on exit” feature does not work by jhasse on Sunday March 24, 2019 @08:54AM (#19476060)
Nah, they rather implement a file sharing website.
Re:Chrome “clear cookies on exit” feature does not work by demxzy on Sunday March 24, 2019 @10:15AM (#19476444)
Just thinking. Maybe using lxd with rendering on the X server of the host if you use Linux. Then keeping a base container that you can clone anytime you want to start a new browsing session. Or making use snapshots if you like.
Re:Chrome “clear cookies on exit” feature does not work by mcv on Sunday March 24, 2019 @12:48PM (#19477294)
Browsers should be on our side. If they're failing at that, then they're not good.

Personally, I'd like browsers to be much smarter about which cookies to keep and which to throw away. Keep cookies about settings, throw away everything else. And instead of not accepting cookies, leading to sites complaining about that, just accept them and throw them away at the end of the session.

Also, I'd really like the option to open some sites always in incognito mode. Many sites have no business knowing who I even am, but some really do. Same cookie policy for all sites makes no sense. Cookies need to be a lot more transparent, and instead of relying on annoying and incomprehensible GDPR popups, the browser should take care of that.

Re:Chrome “clear cookies on exit” feature does not work by vt100 on Sunday March 24, 2019 @12:31PM (#19477188)
You can use docker for this