No, most password managers (1Password, for example) will only fill in the passwords if the domain matches.
Truth be told, I don't think this hack would work on anyone who is sophisticated enough to use a password manager though. Who enters login info without inspecting the URL?