This question already has an answer here:
- Cooking in a day old pot on purpose 3 answers
If a food is hot enough, it can give off its taste into the utensil it is touching. This is called bli'os.
If these bli'os are less than 24 hours old, they are called nosein ta'am leshevach, and could be problematic. (For instance, cooking milk in a pot that has absorbed meat.) If these bli'os are more than 24 hours old, they are called nosein ta'am lefegam and are subject to a machlokes Tannaim (see, for instance, AZ 67b and 75b-76a).
On AZ 65b, the Mishnah (as emended by the Gemara on the same amud), following the opinion that nosein ta'am lefegam is allowed, says that if wine used for idolatry (yayin nesech, forbidden even for non-eating benefit) fell on figs, if there is enough for the taste to be discernible, the figs are forbidden to be eaten. However, if it is nosein ta'am lefegam, it is permissible.
From the Mishnah's case of "if this happened...", can we infer that this is only in a bedieved case, that is, when the wine already spilled, if it's nosein ta'am lefegam it is permissible? Or is this ruling even lechatchilah - one may spill wine on the figs and eat them, if it is nosein ta'am lefegam?
For the record, we do pasken like the opinion that nosein ta'am lefegam is permissible (Rambam Ma'achalos Asuros 16:33, SA YD 134:9).