mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 675794 - about:config must trim whitespace from the name for a new alphanumeric; r=gavin.sharp f=margaret
This commit is contained in:
parent
1ee7b4f136
commit
57425932cf
@ -607,7 +607,12 @@ function NewPref(type)
|
||||
gConfigBundle.getString("new_prompt"),
|
||||
result,
|
||||
null,
|
||||
dummy) && result.value) {
|
||||
dummy)) {
|
||||
result.value = result.value.trim();
|
||||
if (!result.value) {
|
||||
return;
|
||||
}
|
||||
|
||||
var pref;
|
||||
if (result.value in gPrefHash)
|
||||
pref = gPrefHash[result.value];
|
||||
|
Loading…
Reference in New Issue
Block a user