Closed Bug 28292 Opened 25 years ago Closed 24 years ago

pref enumeration can go into an infinite loop

Categories

(Core :: Preferences: Backend, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: neeti)

Details

i just found this out:

I have some default prefs (in mailnews.js) that I'm trying to iterate through
and migrate.

my PrefEnumerationFunc gets all prefs that matches "ldap_2.server.*.description"
and tries to set those prefs to a migrate value.

this causes an infinite loop, it looks like setting a default pref (thus making
it appear in the users prefs.js) causes the problem.
neeti wrote:  How do I reproduce this bug? Does it happen on all platforms? 

to reproduce, you're going to have to write some code.  I changed the code I 
wrote (to work around this bug).

try to write some code that enumerates over all the 
"ldap_2.server.*.description" prefs and tries to set them in the enumeration 
call back.

I'm not sure if it happens on all platforms, but I would suspect that it did.

this is not a beta blocker, so if you have beta bugs, work on those first.
Status: NEW → ASSIGNED
Target Milestone: M15
Target Milestone: M15 → M16
Target Milestone: M16 → M17
This bug has been fixed by alecf's fix for bug 34199.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verif.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.