Earlier quoted context omitted.
They design for an audience that, on average, cannot distinguish betweeen the address bar of the browser and the search bar on the Google homepage.
I mean after a certain point you just have to accept the kinds of things that your users will type in whatever text boxes you show them and make it work. If you know what the user is trying to do then it's not good UX to throw an error or tell them "I know you're trying to search, but I won't until you retype it into this other box ". Google Maps is a good example of this. Like the original text box you were shown wa…
IMO it's a bit much to decide what "the right thing" is there. Blindly assuming that someone attempting to edit credentials didn't mistype a file name isn't exactly safe and sounds like a great way to cause problems based on believing you updated something you did not in fact update.