You need to implement the nsIPromptServcice2 and nsIPrompt interfaces
There you will get a list of methods (for example Alert();) where you simply do not provide an implementation. This will catch the exception.
Create the following class (you will need to provide an implementation for many methods such as Alert, Confirm, Prompt, etc.
public class FilteredPromptService : nsIPromptService2, nsIPrompt
{
public void Alert(string dialogTitle, string text)
{
}
}
, - - (, Application_Startup() WPF) :
PromptFactory.PromptServiceCreator = () => new FilteredPromptService();
, , PromptService , GeckoBrowser .