This is explicitly mentioned in the new law, and it is still legal for the 17 year old to smoke if no one else in the vehicle is under 18.
And incidentally it is still legal to smoke in a convertible with the top fully down ( sun roofs being open don't count ! )