Green’s Dictionary of Slang

dolly n.2

[? they have as much sense as a child’s doll]

[mid-19C] anyone who has committed a faux pas or social solecism.