Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Clear browser history should work regardless of whether or not the page is bookmarked. #3346

Closed
alexwykoff opened this issue Aug 23, 2016 · 5 comments

Comments

@alexwykoff
Copy link
Contributor

Did you search for similar issues before submitting this one?
Yes

Describe the issue you encountered:
When attempting to clear browser history, I noticed that certain pages were staying in history. When I deleted the bookmark and cleared the history again, the history line item for that formerly bookmarked page disappeared.

Expected behavior:
All browser history should be cleared regardless of bookmark status.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    Tested on OS X
  • Brave Version:
    0.11.6 pre-beta2
  • Steps to reproduce:
    1. Visit and bookmark some sites.
    2. Go to about:history and clear history, notice remaining items.
    3. Delete a bookmark and clear history.
  • Screenshot if needed:
    history_is_not_clearing
  • Any related issues:
@alexwykoff alexwykoff added this to the 0.11.6dev milestone Aug 23, 2016
@bridiver bridiver self-assigned this Aug 23, 2016
@alexwykoff
Copy link
Contributor Author

Sorry, dup of #3330. My issue searching regex-fu wasn't strong enough.

@alexwykoff alexwykoff added the duplicate Issue has already been reported label Aug 23, 2016
@bridiver
Copy link
Collaborator

bridiver commented Aug 23, 2016

I don't think #3330 is the same thing. The real issue appears to be the inclusion of non-history items in the history

history={frame.get('location') === 'about:history'
                ? this.props.appState.get('sites') || emptyMap
                : null}

cc @bbondy

@bsclifton bsclifton removed the duplicate Issue has already been reported label Aug 24, 2016
@bsclifton bsclifton reopened this Aug 24, 2016
@bsclifton
Copy link
Member

Definitely not the same thing- the entire sites list is being sent over, which contains bookmarks and history. That could be optimized and additionally (to fix the issue), about:history needs to hide entries which have a null timestamp

@bsclifton
Copy link
Member

bsclifton commented Aug 28, 2016

Submitted PR w/ fix 😄
#3501

opened a new ticket for the refactoring concerns
#3502

@bsclifton
Copy link
Member

To verify the fix

  • Install a version of Brave which has the fix
  • Launch Brave and navigate to about:history
  • Launch a new tab, visiting a page which has not been visited yet
  • Bookmark this previously unvisited site
  • Return to history tab
  • Verify the site you just visited shows up
  • Click the Clear browsing history button
  • Make sure to pick Browser history and click OK
  • Verify that the bookmarked site no longer shows up

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.