08-05-2020, 04:16 PM
(08-05-2020, 07:11 AM)anniyan Wrote: thank you. if it is ok with you, please upstream the fix to the chromium project. all chromium-based browsers are affected by this bug.We are not Chromium members. You can send this patch(content between "//add begin" and "//add end") to them:
Code:
// Select the item saved in the pref.
for (size_t i = 0; i < save_types_.size(); ++i) {
if (save_types_[i] == preferred_save_type) {
file_type_index = i;
//add begin
if (preferred_save_type == content::SAVE_PAGE_TYPE_AS_MHTML) {
default_extension_copy = FILE_PATH_LITERAL("mhtml");
suggested_path_copy = suggested_path_copy.ReplaceExtension(default_extension_copy);
}
//add end
break;
}
}
The changed file is https://chromium.googlesource.com/chromi..._picker.cc