Commit Graph

106 Commits

Author SHA1 Message Date
sspitzer%netscape.com
cb3b669f7b fix for #14892, automatically migrate if we only have one 4.x profile and no 5.0 profiles.
r=mscott.
1999-10-15 01:38:54 +00:00
rjc%netscape.com
a0d87839ca [performance] When profile manager is being used, don't read in bookmarks twice... by deferring hiddenwindow.xul loading until after profile manager is done. Review: danm and sspitzer 1999-10-12 22:20:28 +00:00
sspitzer%netscape.com
65686e242a temporary printfs to help me debug the elusive #15792 that only bijals is seeing 1999-10-08 07:12:21 +00:00
sspitzer%netscape.com
da79f92455 when renaming a profile, and renaming the profile directory on disk,
don't do a copy and delete.  just rename the directory.
r=davidm, #15402
1999-10-08 05:41:40 +00:00
sspitzer%netscape.com
75a28423e0 fix build bustage on windows. 1999-10-08 05:14:48 +00:00
sspitzer%netscape.com
e6fa7cbcf2 more clean up of the profile code. #15402, r=davidm
make profileExists() part of the nsIProfile interface, so I can
get at it from JS.  startCommunicator is now startApprunner.
get RenameProfile() and DeleteProfile() to work better.
make the delete profile dialog size to content.
change the 2nd arg of DeleteProfile() to be a bool, and not a string.
use MakeUnique() to prevent undesired collisions of profiles on disk.
1999-10-08 04:58:32 +00:00
sspitzer%netscape.com
cca4758400 last touches to finally get Cancel (from the Create Profile Wizard) and Exit
(from the Profile Manager) to work properly.
1999-10-07 09:15:25 +00:00
sspitzer%netscape.com
ed4d98a30f more fixes for #15402, general cleanup of the profile code. Close button is now Exit. remove GetSingleProfile(), use GetFirstProfile() instead. Add ForgetCurrentProfile() for use in getting cancel to work properly. 1999-10-07 06:57:38 +00:00
sspitzer%netscape.com
d883133813 remove unused code, now that CreateNewProfile() takes two arguments 1999-10-06 21:52:02 +00:00
sspitzer%netscape.com
5123dfc1be fix the create profile wizard ui.
this work was done by the almighty Ben Goodger <rgoodger@ihug.co.nz>
r=sspitzer
I did a little clean up, and made it so show the native file path
1999-10-06 21:36:59 +00:00
sspitzer%netscape.com
be108fd1e8 fix for #15262, r=mscott
break apart the profile factory from nsProfile.cpp and put it into nsProfileFactory.cpp
also, apply dp's patch to use nsIModule.  r=sspitzer
1999-10-05 05:20:45 +00:00
sspitzer%netscape.com
e3cdd7da27 a bunch of changes, all reviewed by mscott.
fix some bugs with next, back, and cancel in the profile manager.
(#15223, #15271)
re-write all callers of nsProfile::GetCurrentProfileDir() to use the file locator.
(#15063)
more profile code clean up. (#15042)
rename the old 4.x history.dat file.  it's called history.dat in 5.0, but the file
formats are different.  (binary in 4.x, vs mork in 5.0)
1999-10-05 04:12:58 +00:00
shaver%netscape.com
7a5b9d5e55 nsIRegistry scriptability update, r=dveditz,dp,alecf a=leaf,chofmann 1999-09-29 02:36:54 +00:00
sspitzer%netscape.com
bc1ccb9b9a finish renaming and moving all the profile xul, js and dtd files.
fix regression with Rename and Delete.  (they work again.)
1999-09-28 22:50:50 +00:00
sspitzer%netscape.com
e96fe99b53 fix for #14999. remove the profile appcore 1999-09-28 07:29:25 +00:00
sspitzer%netscape.com
7cef11657b whoops, forgot to StartUp prefs after ShutDown 1999-09-28 01:04:00 +00:00
sspitzer%netscape.com
b5f87254c3 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...)
1999-09-28 00:53:29 +00:00
sspitzer%netscape.com
0bfdd1954c fix my build bustage. 1999-09-22 05:32:41 +00:00
sspitzer%netscape.com
9cd60b7e1c fix to use nsXPIDLCString. 1999-09-22 05:00:23 +00:00
sspitzer%netscape.com
e906ecea6a 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. 1999-09-22 00:50:21 +00:00
dbragg%netscape.com
9603d37111 Added new interface to ProcessPrefs, also fixes build bustage. 1999-09-21 23:17:58 +00:00
waterson%netscape.com
06b78978e9 Fix backwards return values on nsIEnumerator::IsDone(). 1999-09-21 01:28:18 +00:00
sspitzer%netscape.com
28bd25b124 very, very tired of seeing all these printfs. 1999-09-19 19:38:24 +00:00
racham%netscape.com
52a2a620ab Fixing the performance bug 13555 to minimize the number of registry operations. Moved major printfs from DEBUG_profile. 1999-09-18 23:35:09 +00:00
sspitzer%netscape.com
17c449e494 make it so the user has there 4.x bookmarks after migration. 1999-09-18 19:32:52 +00:00
dveditz%netscape.com
3509f48fd2 match buffered i/o registry change in XP_MAC section 1999-09-17 07:00:55 +00:00
sspitzer%netscape.com
a70ead5340 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. 1999-09-16 23:01:45 +00:00
sspitzer%netscape.com
998bcad2f7 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
1999-09-16 20:36:27 +00:00
sspitzer%netscape.com
ec2a267b28 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
1999-09-16 08:17:51 +00:00
alecf%netscape.com
1c716d2c7c fix lots of leaks in profile code
use nsCOMPtr and nsXPIDLCString where I found leaks
1999-09-15 06:07:33 +00:00
sspitzer%netscape.com
5b874e16d1 stupid cut and paste error. 1999-09-15 05:36:53 +00:00
sspitzer%netscape.com
5655835875 add support for the PROFILE_NAME PROFILE_HOME environment variables, for multiple profile migration on UNIX 1999-09-15 05:21:18 +00:00
sspitzer%netscape.com
bf3995a06d 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.
1999-09-15 04:15:27 +00:00
briano%netscape.com
89d8209cf8 General cleanup. 1999-09-15 03:00:30 +00:00
ramiro%netscape.com
e8ba593918 Cleanup the neckutil linking thing. 1999-09-15 02:15:11 +00:00
sspitzer%netscape.com
4f057cd26a only automigrate (when we have one profile) on windows. 1999-09-14 11:12:10 +00:00
sspitzer%netscape.com
e0b280be86 fix build bustage 1999-09-14 10:43:49 +00:00
sspitzer%netscape.com
f9846f9db9 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. 1999-09-14 10:23:08 +00:00
sspitzer%netscape.com
afecdc4e8f 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
1999-09-14 09:41:41 +00:00
sspitzer%netscape.com
167e2ad607 clean up a bunch of code by using nsCOMPtrs and the almighty NS_WITH_SERVICE macro. 1999-09-13 07:37:05 +00:00
sspitzer%netscape.com
073edb9cac XPIDL-ify nsIPrefMigration, and the necessary changes that go along with that. 1999-09-13 05:52:18 +00:00
sspitzer%netscape.com
dd8d913ed5 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()
1999-09-13 00:10:13 +00:00
sspitzer%netscape.com
5fc797845d more changes to get profile migration to work on UNIX. fix stupid mistake that was breaking migration on all platforms. 1999-09-12 01:06:12 +00:00
sspitzer%netscape.com
90ed3cfbd2 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 1999-09-12 00:14:50 +00:00
beard%netscape.com
2308a9ce73 Fixed a leak and incorrect copy of C string. Added nsXPIDLCString::operator =() to simplify usage. 1999-09-11 23:05:47 +00:00
sspitzer%netscape.com
bef08ecd2c more changes to get profile migration to work on UNIX 1999-09-11 22:18:47 +00:00
sspitzer%netscape.com
726c31e012 follow convention and put the preprocessor macros on the first character of the
line.
1999-09-11 21:21:16 +00:00
colin%theblakes.com
317c0966aa Tidy up library list 1999-09-11 15:37:40 +00:00
alecf%netscape.com
629f39c6ec fix printf and don't release the service we're given 1999-09-10 05:38:18 +00:00
alecf%netscape.com
373f71408f fix uninitialize variable that was preventing prefs from saving on windows 1999-09-10 05:25:29 +00:00