New legislation to hold carmakers responsible for self-driving vehicle crashes