GtkFileChooser autocompletes when it shouldn't
Forwarding from https://bugs.debian.org/889476
From chromium "Load unpacked extension..." it brought up what I assume is the gtk file chooser. Enable "Type a file name" then I put in the directory to my extension (calling it /abs_path here). It added a slash at the end so now /abs_path/ , I pressed Enter, and I can see it briefly flash on /abs_path/.git before the dialog closed, chromium gives an error loading extension because it has the /abs_path/.git path.
I gave it the correct path, it decided to auto complete something else and not only that but to do so after accepting the path I gave it doesn't give the user a chance to fix the program's wrong choice.
It will also auto complete to an invalid filename. In chromimum select a file to upload, do the "Type a file name" option, put in the full path to a bunch of image files that all have the same first few characters. After putting in the path into the location I press enter, any other file browser will go to that directory, this will instead will provide the application with path/prefix where prefix is the first few characters common to all the name files in that directory. The result is giving the application a file name that doesn't exist.