Closed Bug 738263 Opened 13 years ago Closed 13 years ago

Default bookmarks import on migration is temporarily broken

Categories

(Toolkit :: Places, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla16
Tracking Status
firefox14 + verified
firefox15 + verified

People

(Reporter: mak, Assigned: asaf)

References

Details

(Keywords: regression)

Attachments

(2 files)

Due to bug 482911 we had to temporarily break default bookmarks import on initial migration, Mano will fix this here or in bug 737381. This should be fixed before we merge FF14 to Aurora.
Blocks: 482911
No longer depends on: 482911
Keywords: regression
Blocks: 710262
(In reply to Marco Bonardo [:mak] from comment #0) > This should be fixed before we merge FF14 to Aurora. For Mano's sake, the uplift will occur on 4/24.
This doesn't fix the bug, but as it is now we may overwrite migrated bookmarks, so better breaking it by will.
Attachment #612158 - Flags: review?(mano)
Attachment #612158 - Flags: review?(mano) → review+
Whiteboard: [leave open]
Whiteboard: [leave open]
Depends on: 748569
Fixed by bug 748569.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
[Triage Comment] Updating status flag to 'fixed' as per comment 5
I can't find any builds to see the broken import before this fix. Could you please direct me to one ?
any nightly build from 2012-04-04 to 2012-05-29 should have it broken, we are talking about default bookmarks, not generic import. Like the Mozilla Firefox folder in Bookmarks Menu.
I see all the default bookmarks (Most Visited, Getting Started, Mozilla Firefox folder, Recently Bookmarked, Recent Tags) on new profiles on Nightly 2012-04-06, Nightly 2012-05-13, Nightly 2012-05-28. Am I missing something here ?
(In reply to Paul Silaghi [QA] from comment #9) > I see all the default bookmarks Is this when importing bookmarks from another browser? We broke them "on initial migration", so when a new profile is created and bookmarks are imported from a third party browser.
Thanks Marco. I can see the issue now. But the problem is I can also see it on the latest nightly 16.0a1 (2012-06-18).
Paul, can you list the STR exactly? Perhaps in a separate bug - we should certainly investigate.
I'll post the STR here, because in fact it's the same issue. STR: 1. Remove profiles folder 2. Start Firefox 3. Select Chrome from the migration wizard 4. Press Finish Expected results: Firefox should start having all the default bookmarks (Most Visited, Getting Started, Mozilla Firefox folder, Recently Bookmarked, Recent Tags) Actual results: Default bookmarks (Most Visited, Getting Started, Mozilla Firefox folder, Recently Bookmarked, Recent Tags) are missing Tested on Nightly 2012-06-21 on Win 7 64-bit.
Wow, yes, something is completely broken.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Bloody hell. The reason this worked for me with my patch is because I didn't actually remove the profiles Firefox data folder. Instead, I launched firefox with --migration *and creted a new profile*. Apparently, profile manager->create a new profile->migration (during a single start-up!) is somehow different then the "natural" use case. Investigating now.
Er, wait, I cannot reproduce this at all with my own build, only with the nightly.
And comment 15 is wrong. In the nightly build I can reproduce this with --migration just as well as in the natural scenario. Wondering what could be different...
In my own build, the default profile has a bookmarks.html when it's created (to which "BMarks" point). This file doesn't exist in the default profile created by the nightly build.
So... I'm not sure how this bookmarks.html sneaks his way into new profiles in my homemade build, but it seems to me that I should not rely on it. I /think/ I should use "resource:///defaults/profile/bookmarks.html" (in the nightly case, this points to a file in the omnijar, and it is indeed there).
Attached patch Do soSplinter Review
Attachment #635763 - Flags: review?(mak77)
Comment on attachment 635763 [details] [diff] [review] Do so Marco is away.
Attachment #635763 - Flags: review?(gavin.sharp)
Pushed to try so I can test this on something close enough to the nightly builds. The builds will be available here: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/aromano@mozilla.com-cf487c1033f9
Indeed I cannot reproduce this bug in the try-build.
Comment on attachment 635763 [details] [diff] [review] Do so [Triage Comment] We'll want this on beta - let's get this on Aurora now, get an extra verification there just to be extra sure before approving for beta.
Attachment #635763 - Flags: review?(gavin.sharp)
Attachment #635763 - Flags: review+
Attachment #635763 - Flags: approval-mozilla-aurora+
Target Milestone: --- → mozilla16
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Paul, could you test this again with a recent aurora build?
Attachment #635763 - Flags: review?(mak77)
(In reply to Mano from comment #27) > Paul, could you test this again with a recent aurora build? Verified fixed on FF 15.0a2 (2012-06-24) on Win 7, Ubuntu 12.04 and Mac OS X 10.6.
Comment on attachment 635763 [details] [diff] [review] Do so [Approval Request Comment] Bug caused by (feature/regressing bug #): new migration system. User impact if declined: default-bookmarks won't be included for users performing initial migration Testing completed (on m-c, etc.): There are any tests for migration. Paul verified that the fix works though Risk to taking this patch (and alternatives if risky): No risk. The patch only touches the use case involved. Worst case scenario - the bug won't be fixed completely for some users. String or UUID changes made by this patch: none
Attachment #635763 - Flags: approval-mozilla-beta?
Comment on attachment 635763 [details] [diff] [review] Do so [Triage Comment] Low risk, and in support of the new migration feature. Approved!
Attachment #635763 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Verified fixed on FF 14b10 on Win 7, Ubuntu 12.04 and Mac OS X 10.6.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: