Closed
Bug 1105422
Opened 10 years ago
Closed 7 years ago
Firefox add-on - usage of simple-prefs directory - garbage symbols in path
Categories
(Toolkit :: Add-ons Manager, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: vshulgin, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
Steps to reproduce:
I was creating simple add-on for Firefox using SDK. It was necessary to implement user preferences and one them is path to folder. I declared preference in package.json as follow:
"name": "SearchDirectory",
"title": "Search directory",
"description": "Search directory",
"type": "directory",
"value": ""
I packaged add-on and added it to Firefox from xpi file. Then I opened add-on settings page. There was an option to select relevant folder. I selected the path containing the Russian symbols - "C:\тупая русская папка". The path was selected and shown as new value of setting correctly. Then I tried to close extension settings page and open again. Now there was "C:\BC?0O @CAA:0O ?0?:0" value. I've the same result if read the value of setting from code using require('sdk/simple-prefs').prefs["SearchDirectory"] - it gives me garbage "C:\BC?0O @CAA:0O ?0?:0" value.
Actual results:
I'm getting garbage value of setting - "C:\BC?0O @CAA:0O ?0?:0".
Expected results:
Expected the correct value "C:\тупая русская папка".
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Component: Untriaged → Extension Compatibility
Updated•10 years ago
|
Component: Extension Compatibility → General
Product: Firefox → Add-on SDK
Version: 33 Branch → unspecified
Updated•10 years ago
|
Component: General → Add-ons Manager
Product: Add-on SDK → Toolkit
Version: unspecified → Trunk
Updated•10 years ago
|
Blocks: sdk/simple-prefs
Comment 2•7 years ago
|
||
Not sure why this got moved to Add-ons Manager but it is no longer relevant
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•