Yes, that sounds like contenpt of court to me. Of course she should not be persecuted for being a witness; but she should be held in contempt if, after being warned of the consequences of her impertinent behavior, she persists in it. Respect for the dignity of the court is of compelling importance.
I have watched judges endure remarkable tirades by litigants- and seen judges "snap," and it goes something like this:
(Bailiff, having been subtly signaled by the judge, or sinply recognizing the situation developing, has sidled up behind the big-mouthed one, the "contemnor", and then...):
Judge: "I find you in contempt of court and sentence you to five days in the charge of the County Jail. Bailiff, take your prisoner into custody."
Followed immediately by the *snap* of the cuffs going on. For these people (this is in civil court, they are not there as criminal defendants) hearing the word, "prisoner," and feeling those cuffs go on, is quite a shock. As it is intended to be.
Usually out after a few hours, "shock probation." And a whole new attitude ensues.
...three miles from BRONS, clear for the ILS one five approach...