Closed Bug 860104 Opened 12 years ago Closed 12 years ago

We should cast the interpolated prefs written to user.js

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla23

People

(Reporter: jgriffin, Assigned: jgriffin)

References

Details

Attachments

(1 file)

We currently don't cast the interpolated prefs written to user.js by runtestsb2g.py; as a result, we get invalid statements like: user_pref("dom.mozBrowserFramesEnabled", "false");
If we are going to be using this pattern a lot elsewhere, maybe it should live as a separate class method in mozprofile?
Attachment #735495 - Flags: review?(ahalberstadt)
Assignee: nobody → jgriffin
Comment on attachment 735495 [details] [diff] [review] Cast prefs after interpolation, Review of attachment 735495 [details] [diff] [review]: ----------------------------------------------------------------- Sorry, my mistake. I thought gecko's preference parsing would be smart enough to cast 'true' to true. And yes I was planning to move this interpolation pattern to mozbase, either as a mozprofile classmethod or part of the moztest integration layer once we get around to implementing it. I stuck it here for now as it is the only place doing this, but I'll be refactoring it out once some other harnesses start using the same method.
Attachment #735495 - Flags: review?(ahalberstadt) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: