Chromium Code Reviews| Index: ui/base/dialogs/select_file_dialog_mac.mm |
| diff --git a/ui/base/dialogs/select_file_dialog_mac.mm b/ui/base/dialogs/select_file_dialog_mac.mm |
| index e0f4003276f0cfa6bd9ea6d77be3bf4a9003eaab..5b66bafb4175788ad76283c49c7ba47015da23c9 100644 |
| --- a/ui/base/dialogs/select_file_dialog_mac.mm |
| +++ b/ui/base/dialogs/select_file_dialog_mac.mm |
| @@ -227,6 +227,12 @@ void SelectFileDialogImpl::SelectFileImpl( |
| base::mac::ScopedCFTypeRef<CFStringRef> uti( |
| CreateUTIFromExtension(ext_list[j])); |
| [file_type_set addObject:base::mac::CFToNSCast(uti.get())]; |
| + |
| + // Always allow the extension itself, in case the UTI doesn't map |
| + // back to the original extension correctly; http://crbug.com/148840 |
| + base::mac::ScopedCFTypeRef<CFStringRef> ext_cf( |
| + base::SysUTF8ToCFStringRef(ext_list[j])); |
| + [file_type_set addObject:base::mac::CFToNSCast(ext_cf.get())]; |
|
Nico
2012/09/17 08:03:33
Did you file a bug with apple (bugreport.apple.com
thorogood
2012/09/18 02:12:25
Done and done.
|
| } |
| } |
| allowed_file_types = [file_type_set allObjects]; |