SACRAMENTO (AP) — The California Senate is approving legislation that requires everyone, including law enforcement officers, to secure guns they leave in a vehicle.

The bill sent to Gov. Jerry Brown follows several high-profile thefts from the vehicles of law enforcement officers in the San Francisco Bay Area.

READ MORE: LA County Parks Re-Opens Its Junior Lake Lifeguard Program

SB869 by Democratic Sen. Jerry Hill of San Mateo was approved in a 26-12 vote. It would require that handguns left in unattended vehicles be locked in the trunk or in a locked container out of view.

Violating the law would be an infraction punishable by a fine of up to $1,000.

READ MORE: Pageant Of The Masters, Newport Beach Jazz Festival Announce 2021 Dates

The measure was supported by gun-control groups and the California Association of Highway Patrolmen, which says stolen guns can be used in crimes.

Nobody spoke against it in the Senate Wednesday.

MORE NEWS: 2 Long Beach Grocery Stores Shutting Down Saturday Over Hero Pay Law

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)