Closed Bug 8610 Opened 27 years ago Closed 27 years ago

prepend # to the prefs file

Categories

(Core Graveyard :: Profile: Migration, defect, P3)

All
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: norrisboyd, Assigned: dbragg)

References

Details

Norris, This sounds like 3 bugs: 1.A bug against John McMullen to do the special processing required to ignore the leading # 2.A bug against Don Bragg to prepend the # to the prefs file during migration 3.Another bug against John McMullen to write out the prefs file with the prepended # These seem like simple changes, but it'd help a lot to have the bugs exist and list each other as dependents. Steve Norris Boyd wrote: Any chance that when a 4.x pref is converted to a 5.x pref that the prefs file could be made not executable by a normal JS load? For example, having the first line start with # rather than // would work as long as the first line was skipped before evaluating the code. Why do this? We've had a few attacks in the past that have defined a custom user_pref function and then managed to load the prefs.js file. That then gives the attacker access to a bunch of private data, potentially including a password that could be subject to password guessing attacks on the machine of the attacker. --Norris -- Steve Elmer (650) 937-2522 Manager CCK Development selmer@netscape.com
Blocks: 8612
Depends on: 8613
Status: NEW → ASSIGNED
Accepting bug. I can't reallly add this to the migration tool until the "ignore it" part of the bug can be added.
Component: libPref → Profile Migration
Target Milestone: M10
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
Fixed. Added the same thing Neeti is putting into a brand new prefs.js file: "# Mozilla User5 Preferences "
Don, I am adding this as the first line in prefs.js # Mozilla User Preferences and not # Mozilla User5 Preferences Neeti
Weird. I got that string out of my prefs.js that was setup by Mozilla. Was it ever User5? (That's just an information question, I'll change mine to write User Preferences.)
Status: RESOLVED → VERIFIED
Don, I am not sure if there ever was a ever User5. However, we write out the following header "Mozilla User Preferences." to the prefs file.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.