The most common cause for white foamy vomit is stomach upset. Try withholding food from your dog for the next 12 hours and then slowly start feeding your dog small amounts of its normal food.