That definitely sounds like an annoying issue. It's likely related to a bug with how Firefox is interacting with macOS Ventura's dock management. You might want to try resetting the dock using Terminal with the command: killall Dock — it can sometime...