зеркало из https://github.com/mozilla/pjs.git
Bug 693099 - "Save Snapshot As" option on HTML5 videos creates PNG files with .JPG file extension. r=sparky
This commit is contained in:
Родитель
5c3a8c6b41
Коммит
b95083a6a6
|
@ -854,7 +854,7 @@ nsContextMenu.prototype = {
|
|||
canvas.height = video.videoHeight;
|
||||
var ctxDraw = canvas.getContext("2d");
|
||||
ctxDraw.drawImage(video, 0, 0);
|
||||
saveImageURL(canvas.toDataURL("image/jpg", ""), name, "SaveImageTitle", true, false, document.documentURIObject);
|
||||
saveImageURL(canvas.toDataURL("image/jpeg", ""), name, "SaveImageTitle", true, false, document.documentURIObject);
|
||||
},
|
||||
|
||||
fullScreenVideo: function () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче