Your dog may be producing a large amount of porphyrins, which are molecules that contain pigmentation. These molecules naturally occur in dog saliva and tears. Once these molecules have been exposed to the sun, they can turn black.