Import a Netscape HTML bookmark file
browser_bookmarks_importImports Netscape Bookmark HTML files into Firefox by recreating exported folders and links under a chosen bookmark folder. Use it to restore or migrate bookmarks when native import is unavailable.
Instructions
Read a Netscape Bookmark HTML file and recreate its folders and links under a chosen bookmark folder. MEASURED: Firefox has no importFromHTML in this build, so this parses the file with DOMParser and calls PlacesUtils.bookmarks.insert per item. Import is one level of grouping: each opens a folder and the following entries land inside it, which matches how browsers export a single grouping level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute .html file to read | |
| parentGuid | No | Destination folder guid (default: bookmarks menu) |