mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 738263 - Default bookmarks are still not imported during initial migration. r=gavin.
This commit is contained in:
parent
949739e43b
commit
86371f1eae
@ -266,17 +266,14 @@ let MigratorPrototype = {
|
||||
getService(Ci.nsIObserver);
|
||||
browserGlue.observe(null, TOPIC_WILL_IMPORT_BOOKMARKS, "");
|
||||
|
||||
let bookmarksHTMLFile = Services.dirsvc.get("BMarks", Ci.nsIFile);
|
||||
if (bookmarksHTMLFile.exists()) {
|
||||
// Note doMigrate doesn't care about the success value of the
|
||||
// callback.
|
||||
BookmarkHTMLUtils.importFromURL(
|
||||
NetUtil.newURI(bookmarksHTMLFile).spec, true, function(a) {
|
||||
browserGlue.observe(null, TOPIC_DID_IMPORT_BOOKMARKS, "");
|
||||
doMigrate();
|
||||
});
|
||||
return;
|
||||
}
|
||||
// Note doMigrate doesn't care about the success value of the
|
||||
// callback.
|
||||
BookmarkHTMLUtils.importFromURL(
|
||||
"resource:///defaults/profile/bookmarks.html", true, function(a) {
|
||||
browserGlue.observe(null, TOPIC_DID_IMPORT_BOOKMARKS, "");
|
||||
doMigrate();
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
doMigrate();
|
||||
|
Loading…
Reference in New Issue
Block a user