Prior to Heller there was no precedent that the 2nd means an "individual right" therefore you couldn't sue the state as being unconstitutional until you proved it was unconstitutional in the first place. Kinda getting the Cart before the Horse.
Now post-Heller we still don't have an incorporation test case "yet". I use the term yet because it will happen just a matter of when and where. We want the incorporation case to be as "clean" as possible.
What do I mean by incorporation?
Technically the BoR is a check to protect (not grant) rights from being infringed by the FEDERAL govt. It says nothing about the states. The founding fathers were less concerned about local govt then they were of an all powerful federal govt. They envisioned a govt that was more "the United STATES of America" than the "United States of AMERICA" it is today.
As an example lets look at the first; it starts "Congress shall make no law" it doesn't say "Congress or state legislatures shall make no law". Now from a common sense point of view OF COURSE it makes sense the limitations of the feds should also be a limitation on the states. Common sense isn't a legal defense.
For a long time the position was held that BoR protects against federal infringement ONLY. Starting in the 1890s that began to change. Sadly SCOTUS was "stupid" rather than keep it simple and say "BofR is incorporated against the states" in it's entirety they began a process of selective incorporation. Each amendment was incorporated separately. Some were found to be incorporated, some not, and some haven't ever been argued so we really don't know where they stand.
It was a very stupid move by SCOTUS and creates a lot of ambiguity and lack of consistency.
The bad news: the last time a case involving the 2nd came up it was prior to the period of "selective incorporation" (in the period of no incorporation) so we have no real precedent either way.
For the last 30-40 years there have been no further cases involving Incorporation because prior to Heller it hadn't yet been proven the 2nd means what the 2nd means. You can't fight for incorporation of a right that you haven't proven exists yet. Heller grants the right but because DC is not a state (DC was picked intentionally) the question of incorporation wasn't addressed.
Currently there is an absolute ban on handguns in Chicago, almost exactly the same as the unconstitutional ban in DC. So to say CA couldn't ban guns isn't exactly accurate. Chicago has and does ban guns. Until the 2nd is proven to be incorporated against the states Heller is no protection from state or local tyranny.This provision has not been held to be incorporated against the states. See Miller v. Texas, 153 U.S. 535 (1894); Presser v. Illinois, 116 U.S. 252 (1886); United States v. Cruikshank, 92 U.S. 542 (1875). However, these cases predate the Supreme Court's modern incorporation criteria, so it is an open question whether the Second Amendment will be incorporated.<13> The court has ruled that the second amendment codifies a pre-existing individual right to possess and carry firearms, which is not in any manner dependent on the Constitution for its existence,<14> and some commentators suggest that incorporation is likely,<15> or that incorporation can hardly be escaped if the inferior courts take the Supreme Court's incorporation jurisprudence seriously as law—as they are required to do.<16>
Regarding the Second Amendment and the incorporation doctrine, the Supreme Court in District of Columbia v. Heller said:
With respect to Cruikshank's continuing validity on incorporation, a question not presented by this case, we note that Cruikshank also said that the first amendment did not apply against the states and did not engage in the sort of Fourteenth Amendment inquiry required by our later cases. Our later decisions in Presser v. Illinois, 116 U.S. 252, 265 (1886) and Miller v. Texas, 153 U.S. 535, 538 (1894), reaffirmed that the Second Amendment applies only to the Federal Government.<17>
Since Heller, federal cases have been filed requesting the Second Amendment be made applicable to the states via the Fourteenth Amendment. Two such cases are McDonald v. Chicago and Guy Montag Doe v. San Francisco Housing Authority.
The issue is also currently pending in the Court of Appeals for the Ninth Circuit in the case of Nordyke v. King.<18>