nsGUIEvent focusEvent(theEvent->message);
nsGUIEvent focusEvent(NS_IS_TRUSTED_EVENT(theEvent), theEvent->message, nsnull);
nsresult nsPluginInstanceOwner::DispatchFocusToPlugin(nsIDOMEvent* aFocusEvent){#if !(defined(XP_MAC) || defined(XP_MACOSX))  if (!mPluginWindow || nsPluginWindowType_Window == mPluginWindow->type) {    // continue only for cases without child window    return aFocusEvent->PreventDefault(); // consume event  }#endif  nsCOMPtr<nsIPrivateDOMEvent> privateEvent(do_QueryInterface(aFocusEvent));  if (privateEvent) {    nsEvent * theEvent;    privateEvent->GetInternalNSEvent(&theEvent);    if (theEvent) {      nsGUIEvent focusEvent(theEvent->message); // we only care about the message in ProcessEvent      nsEventStatus rv = ProcessEvent(focusEvent);      if (nsEventStatus_eConsumeNoDefault == rv) {        aFocusEvent->PreventDefault();        nsCOMPtr<nsIDOMNSEvent> nsevent(do_QueryInterface(aFocusEvent));        if (nsevent) {          nsevent->PreventBubble();        }      }    }    else NS_ASSERTION(PR_FALSE, "nsPluginInstanceOwner::DispatchFocusToPlugin failed, focusEvent null");     }  else NS_ASSERTION(PR_FALSE, "nsPluginInstanceOwner::DispatchFocusToPlugin failed, privateEvent null");       return NS_OK;}    