Closed
Bug 1224083
Opened 9 years ago
Closed 9 years ago
Adding string preferences from file adds «u» before «'value'»
Categories
(Testing :: mozregression, defect)
Testing
mozregression
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: arni2033, Assigned: xenny, Mentored)
Details
(Whiteboard: [good first bug][lang=python])
Attachments
(2 files)
STR: (Win7_64, Nightly 45, 32bit, ID 20151110030205, new profile)
1. Save attached file "mozregression - Dark theme"
2. Start new bisection, in the 3rd screen click "Add preferences from file", choose file from Step 1
Result: +------------------+-----------+
The table says: | devtools.theme | u'dark' |
+------------------+-----------+
Expectations:
The value should be «'dark'», not «u'dark'»
Comment 1•9 years ago
|
||
Right, this is only a display issue, because of the repr() function used there:
https://github.com/mozilla/mozregression/blob/2a7ad984bf7b42d0c720c4c8276a178869af0a3f/gui/mozregui/pref_editor.py#L33
BTW I saw a real issue there: https://github.com/mozilla/mozregression/blob/2a7ad984bf7b42d0c720c4c8276a178869af0a3f/gui/mozregui/pref_editor.py#L39 where we use str() instead of unicode. That means that we can not entre manually a non ascii char and we should fix that.
This is a simple bug, let's see if someone is interested to get started with.
Mentor: j.parkouss
Whiteboard: [good first bug][lang=python]
Assignee | ||
Comment 2•9 years ago
|
||
I am interested in resolving this bug. At this moment, I am trying to reproduce it on my machine:
Ubuntu 14.04 - 2, 64 bit.
Comment 3•9 years ago
|
||
Sure! So we talked on irc, issue reproduced.
Thanks Vaibhav for tackling this bug!
Assignee: nobody → vstulsyan
Assignee | ||
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
So yeah, almost here - just the review flag is not set. To do that now:
- Click on [details]
- select "?" for the review field
- in the new textbox displayed, copy my email address (or hit :parkouss and choose what the completion offer)
- click submit
Thanks!
Assignee | ||
Updated•9 years ago
|
Attachment #8686400 -
Flags: review?(j.parkouss)
Assignee | ||
Updated•9 years ago
|
Attachment #8686624 -
Flags: review?(j.parkouss)
Assignee | ||
Updated•9 years ago
|
Attachment #8686400 -
Flags: review?(j.parkouss)
Comment 6•9 years ago
|
||
Comment on attachment 8686624 [details] [review]
Fix Unicode display and edit
Thanks! Looks good to me. I think we can simplify it a bit more (see my comment).
Tell me when you made the change, or if that can not be applicable for some reason. thanks!
Attachment #8686624 -
Flags: review?(j.parkouss) → review+
Comment 7•9 years ago
|
||
Oh also, I you know how to squash your commits, please do it. Else I can do that, and I can explain you how to do that later on irc for next time.
Comment 8•9 years ago
|
||
Landed in https://github.com/mozilla/mozregression/commit/ff6867f7e6ac296bf8ced8fb19e4d460898b8029.
Thanks Vaibhav. :)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•