Closed Bug 722578 Opened 14 years ago Closed 14 years ago

mozprofile deletes all of user.js

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: k0scist, Unassigned)

Details

Attachments

(1 file)

We blow away all preferences in a hard coded user.js (see also bug 721174): https://github.com/mozilla/mozbase/blob/master/mozprofile/mozprofile/profile.py#L193 If we had working tests I would fix this and add a test, but we don't.
Attachment #592961 - Flags: review?(mcote)
Attachment #592961 - Flags: review?(mcote) → review?(wlachance)
Comment on attachment 592961 [details] [diff] [review] fix this and add a test To be thorough, I would like to see another unit test which calls set_preferences multiple times, so we can make sure that the cleaning code works properly. Aside from that, looks good! -- + # prefs files written to + self.written_prefs = set() + + # our magic markers + self.delimeters = ('#MozRunner Prefs Start', '#MozRunner Prefs End') + + NIT: Did you want two lines of whitespace here?
Attachment #592961 - Flags: review?(wlachance) → review+
pushed: https://github.com/mozilla/mozbase/commit/c92257e616f2f68fbdac72c051f10c7f9a85b5d0 > NIT: Did you want two lines of whitespace here? Nope, removed on checkin
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: