GNOME Bugzilla – Bug 774785
Bookmarks are never migrated
Last modified: 2016-11-21 14:41:06 UTC
EphyBookmarksManager always creates an empty bookmarks.gvdb on its init method, and migrate_bookmarks() checks whether bookmarks.gvdb already exists to avoid migrating the bookmarks twice. Since migrate_bookmarks()creates the EphyBookmarksManager before checking for bookmarks.gvdb, it always exists and bookmarks are never migrated. This is a regression introduced in commit 54006df8dba31a5a58686e7d2473d64f3e454683
Created attachment 340419 [details] [review] bookmarks: Add ephy_bookmarks_manager_new()
Created attachment 340420 [details] [review] Fix bookmarks migration
I had to manually downgrade the migration number in .migrated file. I don't even know why the manager needs to write the file in the init method, but assuming that's done a for a reason this looks like the simpler fix.
*** Bug 772865 has been marked as a duplicate of this bug. ***
Review of attachment 340419 [details] [review]: r+
Review of attachment 340420 [details] [review]: Took me a while before I realized that filename changes there in the middle. OK, thanks.
(In reply to Michael Catanzaro from comment #6) > Review of attachment 340420 [details] [review] [review]: > > Took me a while before I realized that filename changes there in the middle. > OK, thanks. It took me a while to follow the previous code with the gotos :-)