That would be illegal under this new law as well:
> The bill also would prohibit an employer from seeking salary history information about an applicant for employment and would require an employer, upon reasonable request, to provide the pay scale for a position to an applicant for employment.
They're not allowed to try to find out from someone else, either.
https://leginfo.legislature.ca.gov/faces/billTextClient.xhtm...