Closed Bug 379431 Opened 17 years ago Closed 17 years ago

Remove xpcom_obsolete from mailnews and mail

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mscott, Assigned: Bienvenu)

References

Details

Attachments

(2 files)

Now that the filespec stuff is gone (Yay!!!)...

David do you want to remove xpcom_obsolete from mailnews and mail so we stop building and linking against xpcom_obsolete?

I think there are some thunderbird packaging changes and a change to removed-files.in we can make too.
Flags: blocking-thunderbird3+
Not quite yet. We're still using nsIRegistry in mail/components/migration and/or mainews/import (can't remember which). I looked at replacing those methods with their NSReg equivalents, but it will take a bit of effort. 
Not yet tested, since I don't seem to have any Netscape profiles laying around, but this is basically a straight port of the Fx fix from bug 333874 (along with the bug 247427 "followup fix" to ensure we're opening something that exists, since it was there for the stealing, too).
Oh, and nsIRegistry.h is included in /mailnews/base/build/nsMsgFactory.cpp, though I didn't spot why.
Ah, bless you, Phil. That registry code was the straw that broke the camel's back - I really didn't want to deal with it :-) It looks reasonable to me.

I don't think nsMsgFactory.cpp needs that include, but I can check.
OS: Windows Vista → All
Hardware: PC → All
Comment on attachment 263442 [details] [diff] [review]
[checked in] Something borrowed

looks good to me.
Attachment #263442 - Flags: superreview+
Attachment #263442 - Flags: review?(mscott)
Comment on attachment 263442 [details] [diff] [review]
[checked in] Something borrowed

although we may not need this anymore if we are removing support for netscape migration..
Attachment #263442 - Flags: review?(mscott) → review+
I'm going to be gone all weekend, so if this is on the critical path for making things go away, I'll need someone to check it in (with the nsMsgFactory.cpp include removed, too). And unless I'm confused a different way now, we do still need it, since nsNetscapeProfileMigratorBase is providing base services, including GetProfileDataFromRegistry(), to nsSeamonkeyProfileMigrator as well.
looks like this patch hasn't made it in yet, do you want the honors Phil?
Once Phil's patch lands, we'll want to check this in too. It stops us from building xpcom_obsolete for Thunderbird!

I've verified with a clean tree on Windows that we successfully build without xpcom_obsolete.
Attachment #269441 - Flags: superreview?(bienvenu)
Attachment #269441 - Flags: superreview?(bienvenu) → superreview+
Comment on attachment 263442 [details] [diff] [review]
[checked in] Something borrowed

Wow, that was a *long* long weekend. I need some scheme for remembering patches on bugs I'm not assigned, where I didn't request the reviews.

Sorry for the delay, which judging by the bitrot actually made extra work for someone doing other fixes for stuff I was supposed to have removed. Oops.

mail/components/build/Makefile.in 1.14
mail/components/migration/src/Makefile.in 1.9
mail/components/migration/src/nsNetscapeProfileMigratorBase.cpp 1.8
Attachment #263442 - Attachment description: Something borrowed → [checked in] Something borrowed
Comment on attachment 269441 [details] [diff] [review]
[checked in]additional changes to stop building xpcom_obsolete

I just landed this so we should no longer be building xpcom_obsolete! w00t!

Thanks for fixing the nsIRegistry stuff Phil.
Attachment #269441 - Attachment description: additional changes to stop building xpcom_obsolete → [checked in]additional changes to stop building xpcom_obsolete
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Scott, you may want to add xpcom_obsolete.xpt to removed-files as well so the updater will remove it from installed builds.
It's already in removed-files.in:

http://mxr.mozilla.org/mozilla/source/mail/installer/removed-files.in#155

We weren't accessing any of the obsolete objects through xpconnect anymore.

:)
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: