nsCOMPtr<nsIPrivateDOMEvent> privateEvent(do_QueryInterface(event)); privateEvent->SetTrusted(PR_TRUE);
FirePluginNotFoundEvent(nsIContent *aTarget){  nsCOMPtr<nsIDOMDocumentEvent> eventDoc =    do_QueryInterface(aTarget->GetDocument());  nsCOMPtr<nsIDOMEventTarget> target(do_QueryInterface(aTarget));  if (eventDoc) {    nsCOMPtr<nsIDOMEvent> event;    nsresult rv = eventDoc->CreateEvent(NS_LITERAL_STRING("Events"),                                        getter_AddRefs(event));    if (NS_SUCCEEDED(rv)) {      rv = event->InitEvent(NS_LITERAL_STRING("PluginNotFound"), PR_TRUE,                            PR_TRUE);      if (NS_SUCCEEDED(rv)) {        PRBool defaultActionEnabled;        target->DispatchEvent(event, &defaultActionEnabled);      }    }  }}