Bug 694434 - Added decodeURI function call to decode percent encoding on the filename URI to display non-ASCII characters correctly. r=dolske

This commit is contained in:
Panu Horsmalahti 2011-10-27 11:42:05 -07:00
parent dedb484195
commit 64b6828c0b

View File

@ -876,7 +876,7 @@
let srcIdx = srcParts.length - 1;
if (src.lastIndexOf('/') == src.length - 1)
srcIdx--;
s.filename.textContent = srcParts[srcIdx];
s.filename.textContent = decodeURI(srcParts[srcIdx]);
let size = v.videoWidth + "x" + v.videoHeight;
if (this._getComputedPropertyValueAsInt(this.video, "width") != v.videoWidth || this._getComputedPropertyValueAsInt(this.video, "height") != v.videoHeight)