Bug 789094 - Style editor: scripts with unicode in the name are URL-escaped. r=dao,dcamp

--HG--
extra : rebase_source : 485f16ff27e111f6d99d29cacd18eeafa3913dc5
This commit is contained in:
Mario Alvarado [:marioalv] 2012-10-03 12:19:24 -06:00
parent aa084ea292
commit 9b0c8fbc7e

View File

@ -375,6 +375,10 @@ StyleEditor.prototype = {
this._friendlyName = (sheetURI.indexOf(contentURI) == 0)
? sheetURI.substring(contentURI.length)
: sheetURI;
try {
this._friendlyName = decodeURI(this._friendlyName);
} catch (ex) {
}
}
return this._friendlyName;
},