When diving, you can use saliva or commercial defog to prevent your mask from fogging. However, according to WikiHow, bacteria in saliva are potentially harmful to your eyes.
Beware of using spit - there are a lot of bugs in saliva that you don't want in your eyes.
Is there any substantive risk of getting a bacterial infection in your eyes in this way?