Self-censorship is the act of censoring or classifying one's own discourse, typically out of fear or deference to the perceived preferences, sensibilities, or infallibility of others, and often without overt external pressure. From Wikipedia
The remarks came at the Edinburgh TV Festival during a session recognizing her with the event’s inaugural fellowship.