mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 734027 - Decode percent encoding on non-ASCII filename when saving a video snapshot. r=jaws
This commit is contained in:
parent
a6c7300ff7
commit
86ced87fec
@ -850,7 +850,7 @@ nsContextMenu.prototype = {
|
||||
let uri = makeURI(this.mediaURL);
|
||||
let url = uri.QueryInterface(Ci.nsIURL);
|
||||
if (url.fileBaseName)
|
||||
name = url.fileBaseName + ".jpg";
|
||||
name = decodeURI(url.fileBaseName) + ".jpg";
|
||||
} catch (e) { }
|
||||
if (!name)
|
||||
name = "snapshot.jpg";
|
||||
|
Loading…
Reference in New Issue
Block a user