Brave-browser: Clearing "History" doesn't remove "Top Sites" on the new tab page

Created on 25 May 2020  路  16Comments  路  Source: brave/brave-browser

image
Version 1.9.72 Chromium: 81.0.4044.138 (Official Build) (64-bit)
image

ODesktop QA Pass-Linux QA Pass-Win64 QA Pass-macOS QYes featurhistory prioritP2 release-noteinclude

Most helpful comment

someone posted this issue on hacker news
https://news.ycombinator.com/item?id=23746117

All 16 comments

This is still not fixed in:
Version 1.10.93 Chromium: 83.0.4103.106 (Official Build) (64-bit)

Can we at least warn users we are not respecting their privacy until a fix can be put in, or ideally remove top sites until it can be implemented with the users privacy settings in mind?

This might actually be fixed in the latest update. I've not managed to recreate this issue today on:
Version 1.10.97 Chromium: 83.0.4103.116 (Official Build) (64-bit)

Nope, just happened again:
Screen Shot 2020-06-27 at 8 59 53 pm

I can't find where that URL is stored however. It doesn't seem to be anywhere (in text) in:
/Users/mark/Library/Application Support/BraveSoftware

cc: @rebron - we probably should make it visible on the Clear on exit modal which group clears top sites (or we could give it its own entry)

@BrendanEich can we please, as a stop gap, warn people that wiping their history is not wiping everything?

someone posted this issue on hacker news
https://news.ycombinator.com/item?id=23746117

NTP gets topsites data from browser's history and manages them(site url, favicon cache url and etc...) to its own place(localStorage) in here.
Because of this, NTP shows previous topsite tiles after clearing history. (But favicon is not visible because NTP uses cached in history.)
To clear topsites when history is cleared, its data in localStorage should be reset.
cc: @bsclifton @petemill

I'm trying to fix this by clearing topsites data implicitely when user clears history. WDYT? @rebron @bsclifton

@simonhong that should work perfectly. We will allow those to be edited (we have an issue for it), but at the moment it's tied directly to history (only real action you can do is move, pin, and close)

Marked as P2 since there is a leak (localStorage)

@bsclifton Ok. Working on it :)

As a user, I鈥檓 now concerned that there are other places where urls and/or history are kept.

@Joshfindit top sites should be the only place where we stored URLs - which with localStorage it would be tied to the Brave extension's localStorage. Clearing cookies should be clearing it - but the problem is if you pick clear history, this should be wiped too

There aren't any other areas we're aware of- but might be good to do an audit
cc: @diracdeltas

Yes please fix this. My student seen the pornhub icon on top sites.

@n-e-r-u Why don't you at least use the Incognito mode?

It was just a joke. At least, i imagine people complaining about this issue because of porn website in top sites :D

Verification passed on

Brave | 1.13.73 Chromium: 84.0.4147.125聽(Official Build)聽dev聽(64-bit)
-- | --
Revision | d0784639447f2e10d32ebaf9861092b20cfde286-refs/branch-heads/4147@{#1059}
OS | Windows聽10 OS Version 1903 (Build 18362.1016)

  • Reproduced the issue in 1.12.x
  • Verified the test plan from https://github.com/brave/brave-core/pull/6047
  • Verified on both clean and upgraded profile

Scenario 1:
NTP with some top sites
image

  • Verified that the deleted site cnn.com from the brave://histrory is removed from NTP top sites list
    image
  • Verified that the deleted pinned site theverge.com from the brave://histrory is removed from NTP top sites list
    image
    image
  • Verified that the top sites are removed from NTP's when whole history is removed from brave://history
    image

Scenario 2: - launch profile with SR code

  • Verified that the NTP's have SR images along with SR top sites pinned
    image
  • Verified that the history is empty in SR profile
    image

Verification passed on

Brave | 1.13.77 Chromium: 85.0.4183.69聽(Official Build)聽dev聽(64-bit)
-- | --
Revision | 4554ea1a1171bd8d06951a4b7d9336afe6c59967-refs/branch-heads/4183@{#1426}
OS | Ubuntu 18.04 LTS

  • Reproduced the issue in 1.12.x
  • Verified the test plan from https://github.com/brave/brave-core/pull/6047
  • Verified on both clean and upgraded profile

Scenario 1:
4 sites:
image
Deleted cnn from history
image
Verified cnn.com top site is deleted too
image

  • Verified that the deleted pinned site interia from the brave://histrory is removed from NTP top sites list
    image
  • Verified that the top sites are removed from NTP's when whole history is removed from brave://history
    image

Scenario 2: - launch profile with SR code
SR is not supported on linux


Verified passed with

Brave   1.13.79 Chromium: 85.0.4183.69 (Official Build) dev (64-bit)
Revision    4554ea1a1171bd8d06951a4b7d9336afe6c59967-refs/branch-heads/4183@{#1426}
OS  macOS Version 10.14.6 (Build 18G3020)


Verified plan 1 from https://github.com/brave/brave-core/pull/6047

Step 2 - top site tiles populated:
step 2 - top sites populated

Step 4 - after one site is removed from history, confirmed it is not shown in top site tiles any more:
step 4 - one site deleted from history

Step 5 - pinned one top site tile:
step 5 - one top site piined

Step 7 - after the pinned site is removed from history, confirmed it is not shown in top site tiles any more:
step 7 - pinned site removed

Step 8 - cleared history
step 8 - history cleared

Step 9 - confirmed all top site tiles are removed
step 9 - all top site tiles gone

Additionally:

  • After completing plan 1 above, confirmed that top sites are able to be populated again (visited some previous and new sites).
  • Confirmed if you have History set to clear "On Exit", the top site tiles are cleared when you relaunch.


Verified plan 2 from https://github.com/brave/brave-core/pull/6047

Confirmed SR install (used TECHNIK) top site tiles are populated without any history:
scenario 2

Was this page helpful?
0 / 5 - 0 ratings