зеркало из https://github.com/mozilla/gecko-dev.git
Bug 733297 - When saving a video from Page Info, the file picker title is 'Save Image'. r=jaws
This commit is contained in:
Родитель
e4519652ca
Коммит
95568a9cec
|
@ -780,8 +780,16 @@ function saveMedia()
|
||||||
var item = getSelectedImage(tree);
|
var item = getSelectedImage(tree);
|
||||||
var url = gImageView.data[tree.currentIndex][COL_IMAGE_ADDRESS];
|
var url = gImageView.data[tree.currentIndex][COL_IMAGE_ADDRESS];
|
||||||
|
|
||||||
if (url)
|
if (url) {
|
||||||
saveURL(url, null, "SaveImageTitle", false, false, makeURI(item.baseURI));
|
var titleKey = "SaveImageTitle";
|
||||||
|
|
||||||
|
if (item instanceof HTMLVideoElement)
|
||||||
|
titleKey = "SaveVideoTitle";
|
||||||
|
else if (item instanceof HTMLAudioElement)
|
||||||
|
titleKey = "SaveAudioTitle";
|
||||||
|
|
||||||
|
saveURL(url, null, titleKey, false, false, makeURI(item.baseURI));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var odir = selectSaveFolder();
|
var odir = selectSaveFolder();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче