Import Chrome's mobile bookmarks when running migration
Categories
(Firefox :: Migration, enhancement, P3)
Tracking
()
People
(Reporter: standard8, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lang=js])
Reporter | ||
Comment 2•5 years ago
|
||
I'd be happy to mentor this if someone wants to take it up. It is not a good first bug though. Having a Google Chrome set-up where you sync bookmarks would also help for testing, though not required.
Generally I think the changes here would be in the migrate() function that's returned from within GetBookmarksResource.
As a first step, we should de-dupe the Importing bookmark bar items
and Importing bookmark menu items
sections. They're virtually identical. We could have a constant that for example maps bookmarks_bar
to PlacesUtils.bookmarks.toolbarGuid
, and then pass that into a for of loop.
From the looks of Chrome's Bookmarks
file, we need to see if there's a synced
section and if it has any children. If it does, then we should:
- Set
browser.bookmarks.showMobileBookmark
to true - Import the bookmarks.
We should probably set the preference first, though I don't think it actually matters.
We should also extend browser/components/migration/tests/unit/test_Chrome_bookmarks.js
to test that additions to the mobile folder work as expected.
Comment 3•5 years ago
|
||
Hey! Though u mentioned that this won't be a good first bug, I would really like to work on it and take it up as my first.
Can i go ahead with it?
Comment 4•5 years ago
|
||
Also, please guide me on how to begin with it.
Reporter | ||
Comment 5•5 years ago
|
||
Hi, thank you for the offer, but for this bug it would be better if you had at least some experience of producing patches and working with some of the code. For this bug, I'm not really prepared to take you through those as well as understanding the import code - that's too much, and there's much simpler bugs where you can learn the initial process - I generally find small goals are better for both sides and are more likely to be completed.
Comment 6•5 years ago
|
||
Jim, is this something you want to track?
Reporter | ||
Comment 8•5 years ago
|
||
Hi Jayati, yes sure, please do.
Comment 9•5 years ago
|
||
Hi Mark! Could you please point me to the relevant functions? Would be a great help! I have worked on one other bug relating to deduping of bookmarks but am not sure how to proceed here.
Reporter | ||
Comment 10•5 years ago
|
||
(In reply to Jayati Shrivastava from comment #9)
Hi Mark! Could you please point me to the relevant functions? Would be a great help! I have worked on one other bug relating to deduping of bookmarks but am not sure how to proceed here.
I think comment 2 should be pointing you to all the necessary changes. I think it should just be that one function.
Reporter | ||
Comment 11•4 years ago
|
||
Jayati isn't working on this at the moment, so opening it up again.
Reporter | ||
Updated•3 years ago
|
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Justine, can you please help me check if this is still reproducible? If it does, let's include it on our list of improvements for the new migratory.
Comment 13•2 years ago
|
||
(In reply to Ania from comment #12)
Justine, can you please help me check if this is still reproducible? If it does, let's include it on our list of improvements for the new migratory.
I just checked and it doesn't import mobile bookmarks. I'll add it to the list of improvements.
Description
•