brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
18k stars 2.36k forks source link

Browsing data not cleared on exit #12571

Open e962c0 opened 4 years ago

e962c0 commented 4 years ago

Description

Everything is checked under 'Settings'/'Clear Browsing Data'/'On exit', but after shutting down the browser/os, re-opening and navigating to twitter.com, avatar + username of previous login appears together with some error messages saying "Something went wrong". After reloading the page, previous login disappears and a clean login page is displayed. Manually clearing all browsing data (all time) produces the same results. All other data/history seems to be cleared.

(browsing data don't re-appear if the service worker on twitter.com is unregistered between step 1 and 2)

image

Steps to Reproduce

  1. Login to twitter.com in a new window
  2. Close the window
  3. Clear all browsing data
  4. Open a new window and navigate to twitter.com

Reproduces how often:

Every time the steps to reproduce are followed

Brave version (brave://version info)

Brave 1.16.72 Chromium: 86.0.4240.183 (Official Build) (x86_64)
Revision 0b568b034b8f7994697cb341eeca5979b84151cc-refs/branch-heads/4240@{#1374}
OS macOS Version 10.15.7 (Build 19H2)

Wallet: 0x8ac08A6a9428C2D0DCE0950406754699E81B45a0

diracdeltas commented 4 years ago

i think Twitter uses a service worker to show those UI components so they work offline. see brave://inspect/#service-workers

maybe service worker isn't cleared when all data is cleared? cc @fmarier

diracdeltas commented 4 years ago

i just tested it and clearing cache in brave://settings/clearBrowserData deleted the twitter service worker after a slight delay as long as the twitter tab was closed currently

e962c0 commented 4 years ago

If you aren't interacting with the SW, it's never deleted, it seems. It sticks for at least 24h after all browsing data is cleared. But if you open/close (reload) twitter.com, it will be deleted.

pes10k commented 4 years ago

@diracdeltas what do you thnk a good priority is here? P3?

diracdeltas commented 4 years ago

p3 sgtm

pes10k commented 4 years ago

eggcellent, p3 it is. Thanks @diracdeltas !

Bob563-sudo commented 5 months ago

Hello,

I am also experiencing this issue with Brave. Despite having configured the settings to clear browsing history and data on exit, my tabs reappear every time I restart the browser.

Problem Details

Observations

Environment

I am a novice and hope that adding this comment as a report is appropriate and timely.

fmarier commented 5 months ago

I am also experiencing this issue with Brave. Despite having configured the settings to clear browsing history and data on exit, my tabs reappear every time I restart the browser.

If you go into settings (brave://settings/getStarted), do you have the Continue where you left off setting selected? Screenshot from 2024-06-20 11-32-56

Bob563-sudo commented 5 months ago

Yes, it was this option. After that, always with the settings of clearing history and data, I also tried setting the option "open the New Tab page", I closed Brave, and I checked my Brave configuration directories. It turns out that the session folder and the history file were not empty.

fmarier commented 5 months ago

@Bob563-sudo Just to make sure I understand correctly: when you set the option to "Open the New Tab page", your tabs are gone, but you still see a session folder and a history file?

Bob563-sudo commented 5 months ago

Yes, exactly.