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

Bookmark title is not updated unbookmarking/rebookmarking #3284

Closed
luixxiul opened this issue Aug 21, 2016 · 14 comments · Fixed by #3339
Closed

Bookmark title is not updated unbookmarking/rebookmarking #3284

luixxiul opened this issue Aug 21, 2016 · 14 comments · Fixed by #3339

Comments

@luixxiul
Copy link
Contributor

luixxiul commented Aug 21, 2016

@luixxiul luixxiul added this to the 0.11.6dev milestone Aug 21, 2016
@bbondy
Copy link
Member

bbondy commented Aug 23, 2016

iii. Bookmark the page

For steps to reproduce pls be super specific, thanks. In which way did you bookmark, maybe the star button?

@bbondy
Copy link
Member

bbondy commented Aug 23, 2016

This is working for me

@bbondy
Copy link
Member

bbondy commented Aug 23, 2016

What is the "actual results" and "expected results"?

@luixxiul
Copy link
Contributor Author

I can reproduce the issue by bookmarking this page with pushing CTRL+D and clicking Save.

The actual result is that the bookmark is saved with the title Issues · brave/browser-laptop, while the expected one is the title Bookmark name is wrongly saved on GitHub issue page · Issue #3284 · brave/browser-laptop.

@luixxiul
Copy link
Contributor Author

I assume that database files were corrupted at some point, but this seems to me not an accident because I experienced the same issue on Windows 10 too. On clean install I cannot reproduce this.

@bsclifton
Copy link
Member

I believe I understand the issue and why we are not able to reproduce it

Bookmark names are saved after they are changed, even after you remove the bookmark. The only way to truly clear the item out is to clear the history.

Here are some steps you can try to reproduce

  1. Bookmark any page
  2. Edit the bookmark, give it a custom title of "ABC"
  3. Remove the bookmark
  4. Re-bookmark the page
  5. Notice the name is now "ABC"

@bsclifton bsclifton self-assigned this Aug 23, 2016
@bsclifton bsclifton changed the title Bookmark name is wrongly saved on GitHub issue page Bookmark custom name is not considered when unbookmarking/rebookmarking Aug 23, 2016
@bsclifton
Copy link
Member

Working on a fix for this now...

@BrendanEich
Copy link
Member

Dup of #3080?

@bsclifton bsclifton changed the title Bookmark custom name is not considered when unbookmarking/rebookmarking Bookmark title is not updated unbookmarking/rebookmarking Aug 23, 2016
@bsclifton
Copy link
Member

bsclifton commented Aug 23, 2016

We want the behavior of keeping the custom title-

I believe after pulling hairs out I have characterized the problem (thanks @BrendanEich!)

  • bookmark a page (let's say it has title "old title")
  • remove bookmark. You no longer have this item bookmarked.
  • [time goes by; page owner changes the title]
  • bookmark the page again (same URL as before; this page has title "new title")
  • title is being set to the OLD title ("old title")

The title of a web page is not something that is changeable by a user; we should always use the latest title available. Custom titles however are fair game.

In the add/edit modal, any text changes to the title will automatically re-calculate the custom title of the bookmark (and this does work).

@bsclifton
Copy link
Member

Fixed with #3339, ready for review 😄

@luixxiul
Copy link
Contributor Author

It seems that the issue started to appear on the latest beta again..
bookmark

@luixxiul luixxiul reopened this Aug 30, 2016
@bbondy bbondy removed this from the 0.11.6dev milestone Aug 30, 2016
@bbondy
Copy link
Member

bbondy commented Aug 30, 2016

won't block 0.11.6 on it.

@bbondy bbondy removed the verified label Aug 30, 2016
@bsclifton
Copy link
Member

bsclifton commented Aug 30, 2016

@luixxiul - please see the above notes. If you re-bookmark, the actual title of the bookmark IS properly updated. However, it will copy the custom title. Your original issue above shows the old (now incorrect) title being assigned to a new bookmark of the page.

I'd like to ask @bradleyrichter -what is your preferred behavior? My understanding is that we want to preserve the custom titles that are given to bookmarks

@bradleyrichter
Copy link
Contributor

@bsclifton I don't think any users would be upset if we don't auto-restore their long lost custom title, but many will be annoyed that the old title seems stuck to the page.

My suggestion is to toss the title when a BM is removed, and monitor user feedback in general for bookmarking.

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