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

328 Коммитов

Автор SHA1 Сообщение Дата
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
briano%netscape.com 977c45c903 Removed the 3 test-tab XUL files that don't exist. 1999-09-18 19:20:27 +00:00
sspitzer%netscape.com eba8d9c336 give the profile manager / installer window a title.
it would be good if the first window the users sees has a title, no?
1999-09-18 18:22:27 +00:00
sspitzer%netscape.com a1ba8b5c4e ignore generated files 1999-09-18 18:13:31 +00:00
sspitzer%netscape.com a93535515c the bookmarks service is looking for bookmarks.html, not bookmarks.htm
now, your bookmarks get migrated!
(unix finally wins a file name battle, but windows still wins the war.)
1999-09-18 18:12:57 +00:00
sspitzer%netscape.com 0f4304a85a rename 4.x bookmarks file after migration to bookmarks.htm for all platforms.
rewrite code so I could use it to rename cookies files and bookmarks file
with the same method.
1999-09-18 18:00:12 +00:00
gayatrib%netscape.com 926d052ee1 This file is not required for profile ui 1999-09-17 23:30:23 +00:00
neeti%netscape.com 7609c24c5b *** empty log message *** 1999-09-17 23:28:56 +00:00
neeti%netscape.com 033b50f733 moved bookmarks.html to defaults/profile 1999-09-17 23:26:54 +00:00
sfraser%netscape.com 586a744c0d First Checked In. 1999-09-17 23:20:53 +00:00
gayatrib%netscape.com f4744af227 adding locale dir to makefile 1999-09-17 23:17:28 +00:00
gayatrib%netscape.com 912d2df10f moving entities into dtds 1999-09-17 23:16:06 +00:00
gayatrib%netscape.com 2bd9b4fc50 makefile for dtds 1999-09-17 22:05:54 +00:00
gayatrib%netscape.com 3793820c87 dtds for profile manager ui 1999-09-17 22:05:04 +00:00
sspitzer%netscape.com 00a15f57f7 close the stream. 1999-09-17 11:47:46 +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 169aac8b82 propagate errors. right now, -installer doesn't work on the mac. now, we through up and and tell the user, which is better than crashing. I'm still working on getting it to work on the Mac. 1999-09-16 23:00:21 +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
cls%seawood.org 26a4d6dc7d Linux only: Removed -D_BSD_SOURCE from DEFINES as it is unnecessary now that __STRICT_ANSI__ is set in <prinet.h> 1999-09-16 14:54:18 +00:00
sspitzer%netscape.com 4b2882a617 increase the changes of -installer working on mac tomorrow, by not checking
if there is enough space before copying.

once we get -installer working on the mac, we'll turn this code back on.
1999-09-16 10:41:13 +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
gayatrib%netscape.com 0408084a13 Removing tabs that are not supported yet 1999-09-16 00:39:20 +00:00
gayatrib%netscape.com da24c5ad30 Fixing the finish button problem and removing tabs that are not supported yet 1999-09-16 00:38:40 +00:00
gayatrib%netscape.com dff77adc50 fixing bug 13899 1999-09-15 21:23:39 +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 5068559111 fix for #13704.
also, instead of just checking that ".msf" or ".snm" or ".summary" appears in th
e file name, we now check if the filename *ends* with ".msf", ".snm" or ".summar
y".
1999-09-14 00:08:33 +00:00
sspitzer%netscape.com afbd510ee3 fix profile migration on windows (and probably mac.)
on UNIX, "mail.directory" is always set.
on windows, it may be set to ""
add the PL_strlen test to tree "" as not being set, so we assume the default 4.x location, which is what we want.
1999-09-13 20:38:23 +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 8675ea5ec8 if GetDirFromPref() failed, we use the old profile directory path to determine the old directory. save that in the premigrated version of the pref, because we will need that during actual pref migration. if we don't do this, premigrated.foo is left blank, because foo was not set. 1999-09-13 07:21:36 +00:00
sspitzer%netscape.com 8ee819b718 added files: mozilla/profile/pref-migrator/public/nsIPrefMigration.idl 1999-09-13 05:52:26 +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 5a12798f0f new files resulting from XPIDL-ifying nsIPrefMigration.
NOT PART OF THE BUILD YET.
1999-09-13 04:23:31 +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
cls%seawood.org 762fca642e Fix my bustage using -D_BSD_SOURCE 1999-09-12 16:41:14 +00:00
sspitzer%netscape.com 03fe870ecd set up prefs with the new prefs.js file that we copied over from the 4.x world 1999-09-12 01:39:03 +00:00
sspitzer%netscape.com 0d184814ac remove obsolete code. define PREF_MAIL_SERVER_TYPE to avoid errors, like using mail.server.type instead of mail.server_type. 1999-09-12 01:13:41 +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