Add a Bookmarks file import option to the new migration wizard
Categories
(Firefox :: Migration, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
(Depends on 2 open bugs)
Details
Attachments
(1 file)
This bug is for adding a new FileMigrator to https://searchfox.org/mozilla-central/rev/f60cf6bfa8bd096efd9bb3a445364f5a0f32897a/browser/components/migration/FileMigrators.sys.mjs for importing bookmarks from an HTML file (and perhaps also a JSON file, depending on the file type being imported)...
This will mostly just be wrapping the importing capability from https://searchfox.org/mozilla-central/rev/f60cf6bfa8bd096efd9bb3a445364f5a0f32897a/toolkit/components/places/BookmarkHTMLUtils.sys.mjs and https://searchfox.org/mozilla-central/rev/f60cf6bfa8bd096efd9bb3a445364f5a0f32897a/toolkit/components/places/BookmarkJSONUtils.sys.mjs.
See the Password CSV file importer for an example of how to implement this: https://searchfox.org/mozilla-central/rev/f60cf6bfa8bd096efd9bb3a445364f5a0f32897a/browser/components/migration/FileMigrators.sys.mjs#157-247
The new migrator will need to be added here too: https://searchfox.org/mozilla-central/rev/f60cf6bfa8bd096efd9bb3a445364f5a0f32897a/browser/components/migration/MigrationUtils.sys.mjs#111-115
Comment 1•2 years ago
|
||
FYI, bug 1419545 reports that mobile bookmarks aren't exported when exporting as HTML (but are as JSON), which might be relevant here.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Commandeering per discussion with tgiles. Thanks for getting this so far, Tim!
Updated•2 years ago
|
Comment 5•1 years ago
|
||
bugherder |
Description
•