Closed Bug 381280 Opened 18 years ago Closed 18 years ago

Places bookmarks.html importer ignores "browser.bookmarks.file" pref

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 alpha5

People

(Reporter: steffen.wilberg, Assigned: jminta)

References

Details

Attachments

(2 files, 1 obsolete file)

The Places bookmarks.html importer ignores the "browser.bookmarks.file" pref. I've set that pref like this in my prefs.js: user_pref("browser.bookmarks.file", "f:\\bookmarks.html"); That's the location of my bookmarks file (which I use for both my Windows and my Linux profiles and which works just fine in non-places-bookmarks builds). After updating to the places-bookmarks-enabled nightly (Windows 2007051904), Minefield presented me the profile's default bookmarks ("Getting Started", "Latest Headlines" etc.). It should have imported my own bookmarks from the above mentioned location. Workaround is to import manually: Menu Bookmarks -> Bookmarks Manager -> Menu File -> Import.
Depends on: 381216
When closing Minefield, the bookmarks get exported to the correct location specified by the browser.bookmarks.file pref.
No longer blocks: 370099
Flags: blocking-firefox3?
-> me, should have a patch as soon as i get my tree updated and rebuilt to test.
Assignee: nobody → jminta
Attached patch patch (obsolete) (deleted) — Splinter Review
Checks for the pref and imports the proper file. Note that the pref is normally undefined, so it'll throw an error when we try to read it, putting us back in the normal bookmarks.html path.
Attachment #265384 - Flags: review?(mano)
Comment on attachment 265384 [details] [diff] [review] patch 1. Set the pref in Firefox 2/1.5. 2. Apply this patch and start with the same profile in a places-bookmarks build, do some change to your bookmarks, quit. At this point, we export the bookmarks.html file to profiledir/bookmarks.html 3. Bump the schema version and force import (we might do that in a future release). 4. Start with the same profile again Your changes are lost, and we'll import from the old bookmarks.html (the one set in the pref). So the pref should be either supported by the export code-path, or get unset after initial import.
Attachment #265384 - Flags: review?(mano) → review-
Comment on attachment 265384 [details] [diff] [review] patch you win ;) but then shouldn't we use the same technique for the import case?
Attachment #265384 - Flags: review-
Attached patch patch v2 (deleted) — Splinter Review
This time using the dir-service.
Attachment #265384 - Attachment is obsolete: true
Attachment #265393 - Flags: review?(mano)
Comment on attachment 265393 [details] [diff] [review] patch v2 r=mano.
Attachment #265393 - Flags: review?(mano) → review+
Checking in browser/components/nsBrowserGlue.js; /cvsroot/mozilla/browser/components/nsBrowserGlue.js,v <-- nsBrowserGlue.js new revision: 1.26; previous revision: 1.25 done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 alpha5
Flags: blocking-firefox3? → in-testsuite?
I backed this out due to both Ts and Txul hits.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 381310
We could try checking in the first patch, to see whether it's the dirService that is slow here. If it's the getCharPref call, then I don't see how the hit is avoidable. I thought prefs were supposed to be really fast however, so as a wild-guess, I'm suspicious of NS_NewNativeLocalFile http://mxr.mozilla.org/seamonkey/source/browser/components/dirprovider/nsBrowserDirectoryProvider.cpp#129
Attached patch perf patch (deleted) — Splinter Review
I'm going to land this patch along with re-landing "patch v2" in just a minute. This should fix the Ts problems previously reported. r=mano over irc.
Attachment #265471 - Flags: review+
Checking in browser/components/nsBrowserGlue.js; /cvsroot/mozilla/browser/components/nsBrowserGlue.js,v <-- nsBrowserGlue.js new revision: 1.28; previous revision: 1.27 done Checking in browser/components/dirprovider/nsBrowserDirectoryProvider.cpp; /cvsroot/mozilla/browser/components/dirprovider/nsBrowserDirectoryProvider.cpp,v <-- nsBrowserDirectoryProvider.cpp new revision: 1.17; previous revision: 1.16 done
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: