- Some code refactoring: Creating file filesList.js, which contains
generic functions for using file lists (arrays whose entries keep file
names and statistics) and corresponding listing files. They can be (and are)
used in another application, and previously were in file conflictCheck.js.
conflictCheck.js is now even more focussed on the 2-way-sync logic
of roaming.
- Added some safe-exception-catches, and showing the error in the UI.
Currently, the code just malfunctions (broken dialog buttons?) in that case.
This should help with bug 244589 and bug 244720, if the fix below fails,
and other future unexpected problems.
- Making the status message actually show something.
- Renaming dumbObject() to ddumpObject() to match ddump() for easier replace
- fixed bug 246201 - infinite conflicts
- less conflicts, if files non-existant
- potentially transfer less (if we know we have the file already)
- code doc improved
- pref API usage
In filesList.js:
- Changing listing file to actually use Unixtime as claimed
(breaks existing files, but should only cause conflicts once)
- Using indexed file lists, should be faster, probably not significant
for roaming
- Allow last modified time to differ 1 sec, because of FAT inaccuracy,
not needed for roaming
- Option to allow newer files, not needed for roaming
- Fixing bug 244589 and probably bug 244720 by moving dom creation after the
empty filename check.
- minimal API change for extractFiles()
New module for session-based roaming like in Netscape Communicator 4.x.
r=Pete Zha <pete.zha@sun.com>
sr=darin (backend), jag (UI code)
a=tor
Tracking of bugs, regressions: Bug 228629