Граф коммитов

191 Коммитов

Автор SHA1 Сообщение Дата
dveditz%netscape.com 34a85af798 backing out, profiles don't use the registry SERVICE 2000-02-13 17:48:25 +00:00
dveditz%netscape.com a1e70679b1 closing the file used by the registry service is evil 2000-02-13 17:43:41 +00:00
ssu%netscape.com 05c1e427a1 fixing bug # 27114. Crash in the profile.dll on exit of windows native installer when mozregistry.dat is missing. This is now fixed. a=leaf r=racham 2000-02-09 22:34:02 +00:00
sspitzer%netscape.com ff4cb04602 workaround fix for #26885. changes for ben to the nsIProfile interface
r=ben@netscape.com
2000-02-08 01:04:41 +00:00
sspitzer%netscape.com f343b861a0 add newlines to the end of some files, and add the defaultProfileDir interface
and for ben.  r=alecf
2000-02-05 21:48:09 +00:00
sspitzer%netscape.com fa6ca7be57 only force the profile manager on you if you aren't cltbld and if you don't
have this other magic flag set.  r=mcafee
2000-02-04 01:00:11 +00:00
sspitzer%netscape.com d3654c6194 fix the orange breakage on tinderbox. force everyone but tinderbox to see the
profile manager.

this will buy me some time until I figure out the real fix
2000-02-04 00:51:58 +00:00
sspitzer%netscape.com bc8b3621c5 a fix the scary message about how migration will kill your 4.x profile.
it just copies, it doesn't not alter the 4.x profile

turn on the profile debugging printfs for everyone, so that we can get
better info in bug reports.  (perhaps this should be using PR_LOG?)

only migrate the 4.x profile info when the user runs -installer

fix the bug where we do automigration on linux, even if their is no ~/.netscape directory

force DEBUG builds to launch the Profile Manager if there were no profile
command line arguments.

a=ben,selmer
2000-02-03 23:43:16 +00:00
sfraser%netscape.com 9e4b1b4c1c Only delete redundant directories if we know we have one. Blocker. r=Ben_Goodger, a=leaf 2000-02-03 20:50:15 +00:00
racham%netscape.com b6db340976 Fixing bugs 16791, 23339, 25609, 25891, 23873. These chnages fix rename profile problem on windows, setting the profile name to the user register name, a fix to nsvoidarray memory leak, loading the user prefs and bringing the right UI for -P option. r=gayatrib 2000-02-03 11:20:57 +00:00
sspitzer%netscape.com 87e4e44374 fix warnings and fix a leak. also, call MigrateProfileInfo() otherwise, the list
of profiles won't show up the first time we run -ProfileManager
2000-01-28 09:56:55 +00:00
racham%netscape.com 7730c871c8 Fixes for 15037, 24681, 24247, 17527, 21716, 19620, 15755. Adapted nsVoidArray solution for profiles data structure. Fixed couple of activation related bugs. Fixed CreateProfile option bug. Added to code to create a default profile silently, when needed. r= sspitzer 2000-01-26 22:19:02 +00:00
racham%netscape.com 471e8adb53 Fix for bug 14908. Copying the required default profile files into the migrated profile dir. r=sspitzer. 2000-01-19 00:20:47 +00:00
dveditz%netscape.com c377c67a76 removing unnecessary #include so I can remove the header file 2000-01-15 02:05:04 +00:00
racham%netscape.com 061d515964 Fixing bug 14358. Extracting activation url. a=McAfee 2000-01-14 08:31:44 +00:00
sspitzer%netscape.com 836b495516 changes needed to get -installer and -ProfileManager working in the new
ben goodger world.
2000-01-13 04:30:20 +00:00
sspitzer%netscape.com 53ac0203b9 fix for #23744. r=alecf
the problem here is that when you use -CreateProfile, prefs don't get
initialized correctly, and you don't get a prefs.js file!  this causes
all sorts of problems, as you might imagine.

addition code cleanup, too.
2000-01-13 00:04:30 +00:00
pp%ludusdesign.com 698852a4f4 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
norris%netscape.com 4f128298d2 Fix 22909 previousSibling vulnerability
r=mstoltz
2000-01-06 00:59:18 +00:00
dougt%netscape.com 4d1a1b38ed Converting to use nsIModule macro. r=dp. 2000-01-03 23:37:30 +00:00
sspitzer%netscape.com f16a570ecd fix for #18118. if the pref "profile.confirm_automigration" is true,
we put up a dialog before we auto migrate.  (the mozilla build does this.)
if that pref is false, we just automigrate.  (the ns build does this.)
r=bienvenu
1999-12-23 20:05:59 +00:00
racham%netscape.com a5cfe6edea Fixing memory leak. bug 21038. r=sspitzer 1999-12-07 23:05:22 +00:00
sspitzer%netscape.com ca3fcac0b6 fix for #15042. fix by=racham, r=sspitzer 1999-12-07 00:22:30 +00:00
sspitzer%netscape.com fcd8ecf115 new files. not part of the build yet. 1999-12-06 18:27:26 +00:00
sspitzer%netscape.com a4be93ec67 fix for #20198. always append the profile name to the native path the user
specifies.   this prevents the users from accidently removing more than they
expect when they delete the profile.
fix by racham, r=sspitzer
1999-12-04 01:39:16 +00:00
warren%netscape.com 2db26922a6 Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
warren%netscape.com 96ec037ac6 Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
cls%seawood.org bee74e223b Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
tbogard%aol.net 10ded258a5 Changed NS_ENSURE_NOT to NS_ENSURE_FALSE to reflect API change. r=hyatt 1999-11-01 21:43:56 +00:00
sspitzer%netscape.com 7a72b30bde remove the GetCurrentProfileDirFromJS() method from the nsIProfile interface. the only one using it was the sidebar js, but now that uses the fileLocator. r=mscott. 1999-10-29 04:01:22 +00:00
sspitzer%netscape.com 33ecda1631 checking in ben goodger's (rgoodger@ihug.co.nz) profile selection UI.
r=sspitzer

I made changes so that:

1)  exit quits the app, and doesn't start up app with the last current profile
2)  fix a spelling error (personalisation -> personalization), this is en-US, not en-UK
3)  fix it so start actually starts the selected profile.
4)  -SelectProfile launches this new dialog
5)  if the user starts with no command line, and they have more than one profile, they get -SelectProfile, and not -installer.
1999-10-28 23:08:46 +00:00
racham%netscape.com 9a0c1c288d r=gayatrib. Fix for Bug 16414. If the profile dir is deleted it always gets rebuilt based on the path it gets from registry 1999-10-28 21:05:26 +00:00
duncan%be.com 9b01e1026a Make profile manager build under BeOS.
r=sspitzer
1999-10-23 17:13:55 +00:00
racham%netscape.com 6b1312ff84 r=sspitzer. Fix for bug 16209. This checkin fixes mozregistry entries to avoid crashes from M9 or builds prior to that 1999-10-22 21:00:53 +00:00
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
alecf%netscape.com c5c85908f7 land new profiles stuff
- move command line processing into nsIProfile
- fix up leaks
- use SERVICE macros
- general cleanup
1999-09-10 00:51:02 +00:00
alecf%netscape.com 43eb7beefc link against appropriate libraries in preparation for profile landing 1999-09-10 00:40:49 +00:00
alecf%netscape.com ebcf1ed682 adding neckoutil_s in preparation for profile landing 1999-09-10 00:30:26 +00:00
bruce%cybersight.com 87b10d9485 Use nsCRT::free() on nsEscape() result rather than delete[]. Fix some memory leaks. Remove some warnings. 1999-09-04 17:00:15 +00:00
gayatrib%netscape.com c56dda8b23 fixing bug #12815 1999-09-02 20:55:41 +00:00
cyeh%netscape.com 34cd2ddae1 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:13:14 +00:00
beard%netscape.com 6f900d6aec plugged a memory leak in GetProfileCount() 1999-08-27 03:48:24 +00:00
dp%netscape.com 07adc72b46 Using nsIRegistry::OpenDefault() instead of Open() with default parameter. 1999-08-25 08:13:24 +00:00
racham%netscape.com 0620b1eb87 Fixing crashers 11638, 11716. Rev by gayatri. Approved by Chris Yeh. 1999-08-12 20:22:52 +00:00
racham%netscape.com fa651fe60f Adding XP_MAC for mac migration 1999-08-11 04:44:53 +00:00
racham%netscape.com d6d7cc779f Checking filespec existence 1999-08-10 08:25:57 +00:00
racham%netscape.com 065148a096 Fixed bugs 6684, 10171 and added profile cloning feature 1999-08-10 08:00:19 +00:00
racham%netscape.com 0a40c0ebc9 Fixing the case of missing profile directory on the disk, bug 7456 1999-08-10 03:27:48 +00:00
mscott%netscape.com cd28fa26cc fix the build breakage...make sure necko is defined. 1999-07-29 02:44:21 +00:00
mscott%netscape.com 82c9027d21 include config.mak to fix windows build breakage. 1999-07-29 02:15:24 +00:00