Hi. Welcome to DF

If you read the instructions that came with the Comfortis, it says that fleas can jump on your dog, but they will die pretty quickly. If your house is clear of fleas, I would say he/she got them from the outside. But they won't live on the dog for very long.
That stuff works really well. Kinda scary.