roadlabs / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Linux: cefclient: Save dialog does not display the suggested file name #1572

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download a file using cefclient on Linux.

What is the expected output? What do you see instead?
The Save File dialog should show the desired file name in the suggested name 
box. Instead, the suggested name box is empty.

Please use labels and text to provide additional information.
The GTK implementation in ClientDialogHandlerGtk::OnFileDialog() uses 
gtk_file_chooser_set_filename() for all dialog box types, which is incorrect. 
The gtk_file_chooser_set_filename() function should only be used for the save 
dialog and only if the requested path actually exists. Otherwise, the 
gtk_file_chooser_set_current_name() function should be used. Related GTK 
documentation: 
https://people.gnome.org/~shaunm/girdoc/C/Gtk.FileChooser.set_filename.html

Original issue reported on code.google.com by magreenb...@gmail.com on 10 Mar 2015 at 6:51

GoogleCodeExporter commented 9 years ago
Fixed in trunk revision 2072.

Original comment by magreenb...@gmail.com on 10 Mar 2015 at 6:54