Yup.
Murdock v. Pennsylvania, 319 US 105, a case heard in 1943 where a town tried to make people distributing religious literature obtain a license.
The state got slapped silly on that one.
The question is: will Roberts, Scalia, Thomas, and (if approved) Alito return to the doctrine of original intent in this matter? If they do, and if conservatives can replace Kennedy or Ginsburg with a like minded justice, firearms ownership restrictions on state and local level could go the way of anti-pornography laws and blue laws. However, these are very big "ifs" and Scalia and especially Thomas are strong advocates of states rights.