Closed Bug 455474 Opened 16 years ago Closed 16 years ago

cleanup nsNavBookmarks::init

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3.1b2

People

(Reporter: mak, Assigned: mak)

References

Details

(Keywords: perf)

Attachments

(1 file, 4 obsolete files)

Attached patch patch (obsolete) — Splinter Review
we are doing that migration in nsNavBookmarks::init, since the code was added after migrateV6up we can move it to migrateV7up
Attachment #338827 - Flags: review?(dietrich)
Summary: move unfiled bookmarks migration code to migrateV7up → cleanup nsNavBookmarks::init
Attached patch patch (obsolete) — Splinter Review
well init needs a cleanup, so morphing bug this actually act more as a reminder, waiting for fsync stuff before producing a final patch and asking review. some note: at the start we are reading mRoot as the item in bookmarks table that has parent = 0, but then we are overwriting it in createRoots, so unless there is any reason to have root before initRoots, we don't need it some function is not checked for success we should move statements in their own function, so init will be cleaner pass the known connection to init functions when possible and do migration code move (see first patch)
Attachment #338827 - Attachment is obsolete: true
Attachment #338827 - Flags: review?(dietrich)
Target Milestone: --- → Firefox 3.1
Blocks: 459197
Attached patch fsync unbitrotted (obsolete) — Splinter Review
unbitrot for fsync stuff, previous cleanup plus define a global mDBConn instead of always asking history instance and getting the connection through DBConn().
Attached patch better (obsolete) — Splinter Review
previous one was wrong patch version
Attachment #342876 - Attachment is obsolete: true
Attachment #338839 - Attachment is obsolete: true
Attachment #342918 - Flags: review?(dietrich)
Comment on attachment 342918 [details] [diff] [review] better other ts patches are based on this
Comment on attachment 342918 [details] [diff] [review] better the bundle service is only used in InitDefaults, so could be moved there, so no longer in the normal startup path.
(In reply to comment #5) > (From update of attachment 342918 [details] [diff] [review]) > the bundle service is only used in InitDefaults, so could be moved there, so no > longer in the normal startup path. that is addressed in bug 342998
ops i attached the attachment number as bug number, the correct bug number is bug 459781
Comment on attachment 342918 [details] [diff] [review] better also the guid base could be moved to a smart-getter.
Attachment #342918 - Flags: review?(dietrich) → review+
Comment on attachment 342918 [details] [diff] [review] better r=me w/ guid comment addressed
Attached patch patchSplinter Review
GUIDBase moved to a getter
Attachment #342918 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: Firefox 3.1 → Firefox 3.1b2
Status: RESOLVED → VERIFIED
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: