sspitzer%netscape.com
963742e804
whoops, forgot to StartUp prefs after ShutDown
...
git-svn-id: svn://10.0.0.236/trunk@49174 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:04:00 +00:00
sspitzer%netscape.com
e595e78e7d
fixes for a bunch of bugs.
...
bug #15041 : window comes up, and then resizes
bug #14600 : play nice when the profile manager exists on the mac.
bug #13780 : crash on winnt and linux when creating a new profile
bug #15042 : clean up mozilla/profile code (more to come...)
git-svn-id: svn://10.0.0.236/trunk@49169 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:53:29 +00:00
sspitzer%netscape.com
0e772449c4
fix my build bustage.
...
git-svn-id: svn://10.0.0.236/trunk@48789 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:32:41 +00:00
sspitzer%netscape.com
fa3910692c
fix to use nsXPIDLCString.
...
git-svn-id: svn://10.0.0.236/trunk@48786 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:00:23 +00:00
sspitzer%netscape.com
32ded88d2b
fix for #13733 . get "Mozilla Installer" (a.k.a. -installer) working on the Mac.
...
there are still issues and bugs, but that comes as no surprise.
git-svn-id: svn://10.0.0.236/trunk@48699 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:50:21 +00:00
dbragg%netscape.com
94d7d541da
Added new interface to ProcessPrefs, also fixes build bustage.
...
git-svn-id: svn://10.0.0.236/trunk@48668 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:17:58 +00:00
waterson%netscape.com
ecac83d9d2
Fix backwards return values on nsIEnumerator::IsDone().
...
git-svn-id: svn://10.0.0.236/trunk@48471 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:28:18 +00:00
sspitzer%netscape.com
96c645b1d7
very, very tired of seeing all these printfs.
...
git-svn-id: svn://10.0.0.236/trunk@48260 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:38:24 +00:00
racham%netscape.com
b6eb72b794
Fixing the performance bug 13555 to minimize the number of registry operations. Moved major printfs from DEBUG_profile.
...
git-svn-id: svn://10.0.0.236/trunk@48227 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 23:35:09 +00:00
sspitzer%netscape.com
bac6cfec5e
make it so the user has there 4.x bookmarks after migration.
...
git-svn-id: svn://10.0.0.236/trunk@48212 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:32:52 +00:00
dveditz%netscape.com
e0efc09bf1
match buffered i/o registry change in XP_MAC section
...
git-svn-id: svn://10.0.0.236/trunk@47942 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:00:55 +00:00
sspitzer%netscape.com
c3877c99de
turn on migration for the mac. note, it doesn't work just yet.
...
also, for mac, like unix, don't automigrate if there is only one profile.
this make it hell to debug. once it works, we can make it automigrate if
we only have one profile if we want.
git-svn-id: svn://10.0.0.236/trunk@47858 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:01:45 +00:00
sspitzer%netscape.com
17201cb709
add a scriptable version of GetCurrentProfileDir to the nsIProfle interface called GetCurrentProfileDirFromJS
...
eventually, the non-scriptable interface will go away, but I don't have time do that yet. slamm is using this in his sidebarOverlay.js
git-svn-id: svn://10.0.0.236/trunk@47828 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:36:27 +00:00
sspitzer%netscape.com
adb9a35445
rewrite to not user GetCString(). read the comments in nsFileSpec.cpp: "Using it guarantees bugs on Macintosh"
...
clean up code. wrap all printfs with #ifdef DEBUG_profile
git-svn-id: svn://10.0.0.236/trunk@47764 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 08:17:51 +00:00
alecf%netscape.com
16d0a4f465
fix lots of leaks in profile code
...
use nsCOMPtr and nsXPIDLCString where I found leaks
git-svn-id: svn://10.0.0.236/trunk@47543 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 06:07:33 +00:00
sspitzer%netscape.com
58ec26b91f
stupid cut and paste error.
...
git-svn-id: svn://10.0.0.236/trunk@47539 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 05:36:53 +00:00
sspitzer%netscape.com
e66162265a
add support for the PROFILE_NAME PROFILE_HOME environment variables, for multiple profile migration on UNIX
...
git-svn-id: svn://10.0.0.236/trunk@47536 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 05:21:18 +00:00
sspitzer%netscape.com
74a36d75c1
rename the mail filter rule files (if we need to, and if we can) when we do the migration.
...
rename the cookie file (if we need to) so that if you run -installer,
you cookies will be migrated.
Change DoTheCopy() to be DoTheCopyAndRename(), which takes additional parameters
to rename files as it copies them.
remove unnecessary code.
#define constants to be clean.
add a stub for RenameAndMoveFilterFiles() with comments on what we need to do
for the mac.
git-svn-id: svn://10.0.0.236/trunk@47519 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 04:15:27 +00:00
briano%netscape.com
c38c8b4426
General cleanup.
...
git-svn-id: svn://10.0.0.236/trunk@47512 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 03:00:30 +00:00
ramiro%netscape.com
e324fbd024
Cleanup the neckutil linking thing.
...
git-svn-id: svn://10.0.0.236/trunk@47500 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 02:15:11 +00:00
sspitzer%netscape.com
6d42b44f38
only automigrate (when we have one profile) on windows.
...
git-svn-id: svn://10.0.0.236/trunk@47333 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 11:12:10 +00:00
sspitzer%netscape.com
547c4b6472
fix build bustage
...
git-svn-id: svn://10.0.0.236/trunk@47330 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 10:43:49 +00:00
sspitzer%netscape.com
6d0567ef31
turn on migration for the mac. note, it doesn't work just yet.
...
also, for mac, like unix, don't automigrate if there is only one profile.
this make it hell to debug. once it works, we can make it automigrate if
we only have one profile if we want.
git-svn-id: svn://10.0.0.236/trunk@47329 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 10:23:08 +00:00
sspitzer%netscape.com
d9b84fefc7
the pref migrator iid's look very suspicous, so regenerate them.
...
follow convention:
rename nsPrefMigrationIIDs.h to nsPrefMigrationCIDs.h
rename NS_IPrefMigration_IID -> NS_PREFMIGRATION_CID
rename kFoo_CID to kFooCID
use the NS_GET_IID macro
git-svn-id: svn://10.0.0.236/trunk@47326 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 09:41:41 +00:00
sspitzer%netscape.com
f07e6429de
clean up a bunch of code by using nsCOMPtrs and the almighty NS_WITH_SERVICE macro.
...
git-svn-id: svn://10.0.0.236/trunk@47108 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 07:37:05 +00:00
sspitzer%netscape.com
5d804074e0
XPIDL-ify nsIPrefMigration, and the necessary changes that go along with that.
...
git-svn-id: svn://10.0.0.236/trunk@47100 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 05:52:18 +00:00
sspitzer%netscape.com
a1f18c5058
use #defines where possible to clean up the code, reduce the risk of errors,
...
and make the code more portable.
create directories with 00700 permissions, not PR_RDWR. On UNIX, PR_RDWR would
create directories with d______r__. 00700 gives us drwx______ which is want we
want. change the signature of ProcessPrefs() so that we just return the result,instead of
setting an out parameter. remove ComputeMailPath(), it is unused.
instead of doing PR_MALLOC in the beginning, set char *'s to nsnull, and use
PR_smprintf() and CopyCharPref() to allocate the memory. (the PR_FREEIF()s
are still correct, though.)
use NS_SUCCEEDED() and NS_FAILED() instead of comparing against NS_OK directly.
don't execute the GetSizes(), GetDriveName() and CheckForSpace() methods
on UNIX, as they are not UNIX friendly. hold onto the nsIFileSpec that points
to the prefs file, so we can save it when we are done using SavePrefFileAs()
Change the signature of GetDirFromPref() and GetDriveName(). The out parameters
were char *'s. they need to be char **'s for them to work.
Change GetDirFromPref() to also take the oldProfilePathStr and the new directory leaf name.
These are used on UNIX, where we to do some magic because in
4.x the directory structure on UNIX was much different that on Mac and Windows
fix leak in GetDriveName(). we were leaking *driveName in the loop.
initialize variables.
add some printfs to remind me that there is more todo.
fix various comments to reflect the new signatures to methods.
check parameters of GetDirFromPref() and GetDriveName()
git-svn-id: svn://10.0.0.236/trunk@47082 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 00:10:13 +00:00
sspitzer%netscape.com
846f73d4a4
more changes to get profile migration to work on UNIX. fix stupid mistake that was breaking migration on all platforms.
...
git-svn-id: svn://10.0.0.236/trunk@46995 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 01:06:12 +00:00
sspitzer%netscape.com
c4930f7cb4
more changes to get -installer to work on UNIX. since there was no registry on UNIX in 4x, so MigrateProfileInfo() for UNIX assumes your profile name is seth and your profile directory in 4.x was /home/seth/.netscape and that you only had one 4.x profile. also, use AUTOMATICALLY_MIGRATE_IF_ONLY_ONE_PROFILE so that on UNIX, we don't automatically attempt to migrate. since we are creating News, Mail, and Cache directories, create ImapMail
...
git-svn-id: svn://10.0.0.236/trunk@46994 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 00:14:50 +00:00
beard%netscape.com
1335664f7f
Fixed a leak and incorrect copy of C string. Added nsXPIDLCString::operator =() to simplify usage.
...
git-svn-id: svn://10.0.0.236/trunk@46991 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 23:05:47 +00:00
sspitzer%netscape.com
292bac0935
more changes to get profile migration to work on UNIX
...
git-svn-id: svn://10.0.0.236/trunk@46983 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 22:18:47 +00:00
sspitzer%netscape.com
9e8da67f11
follow convention and put the preprocessor macros on the first character of the
...
line.
git-svn-id: svn://10.0.0.236/trunk@46977 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 21:21:16 +00:00
colin%theblakes.com
2902c391d4
Tidy up library list
...
git-svn-id: svn://10.0.0.236/trunk@46956 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 15:37:40 +00:00
alecf%netscape.com
308f69b004
fix printf and don't release the service we're given
...
git-svn-id: svn://10.0.0.236/trunk@46713 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 05:38:18 +00:00
alecf%netscape.com
d6297c766d
fix uninitialize variable that was preventing prefs from saving on windows
...
git-svn-id: svn://10.0.0.236/trunk@46704 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 05:25:29 +00:00
alecf%netscape.com
c2e571004d
land new profiles stuff
...
- move command line processing into nsIProfile
- fix up leaks
- use SERVICE macros
- general cleanup
git-svn-id: svn://10.0.0.236/trunk@46671 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:51:02 +00:00
alecf%netscape.com
4e0dae6403
link against appropriate libraries in preparation for profile landing
...
git-svn-id: svn://10.0.0.236/trunk@46670 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:40:49 +00:00
alecf%netscape.com
4afebcbd1f
adding neckoutil_s in preparation for profile landing
...
git-svn-id: svn://10.0.0.236/trunk@46667 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:30:26 +00:00
bruce%cybersight.com
a7fd7cbbce
Use nsCRT::free() on nsEscape() result rather than delete[]. Fix some memory leaks. Remove some warnings.
...
git-svn-id: svn://10.0.0.236/trunk@46012 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 17:00:15 +00:00
gayatrib%netscape.com
146cc7aaa5
fixing bug #12815
...
git-svn-id: svn://10.0.0.236/trunk@45728 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 20:55:41 +00:00
cyeh%netscape.com
cfce14ff56
Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people.
...
git-svn-id: svn://10.0.0.236/trunk@45405 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:13:14 +00:00
beard%netscape.com
7146388dfe
plugged a memory leak in GetProfileCount()
...
git-svn-id: svn://10.0.0.236/trunk@44718 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 03:48:24 +00:00
dp%netscape.com
e071a6b869
Using nsIRegistry::OpenDefault() instead of Open() with default parameter.
...
git-svn-id: svn://10.0.0.236/trunk@44474 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 08:13:24 +00:00
racham%netscape.com
8b82f76f34
Fixing crashers 11638, 11716. Rev by gayatri. Approved by Chris Yeh.
...
git-svn-id: svn://10.0.0.236/trunk@43248 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 20:22:52 +00:00
racham%netscape.com
4b8e44cf15
Adding XP_MAC for mac migration
...
git-svn-id: svn://10.0.0.236/trunk@43157 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:44:53 +00:00
racham%netscape.com
4e331ae987
Checking filespec existence
...
git-svn-id: svn://10.0.0.236/trunk@42956 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 08:25:57 +00:00
racham%netscape.com
67540ebc63
Fixed bugs 6684, 10171 and added profile cloning feature
...
git-svn-id: svn://10.0.0.236/trunk@42953 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 08:00:19 +00:00
racham%netscape.com
a83264b65b
Fixing the case of missing profile directory on the disk, bug 7456
...
git-svn-id: svn://10.0.0.236/trunk@42905 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:27:48 +00:00
mscott%netscape.com
059246c782
fix the build breakage...make sure necko is defined.
...
git-svn-id: svn://10.0.0.236/trunk@41518 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 02:44:21 +00:00
mscott%netscape.com
0140901c4a
include config.mak to fix windows build breakage.
...
git-svn-id: svn://10.0.0.236/trunk@41513 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 02:15:24 +00:00