if (JSVAL_IS_STRING(aID)) { PRBool retval = PR_FALSE; char* cString = JS_GetStringBytes(JS_ValueToString(aContext, aID));  nsCOMPtr<nsIInterfaceInfoManager> iim = dont_AddRef(XPTI_GetInterfaceInfoManager()); nsCOMPtr<nsIXPConnect> xpc = do_GetService(nsIXPConnect::GetCID());  if (iim && xpc) { nsIID* iid; if (NS_SUCCEEDED(iim->GetIIDForName(cString, &iid)) && iid) { nsCOMPtr<nsIPluginInstance> pi; if (NS_SUCCEEDED(GetPluginInstance(getter_AddRefs(pi))) && pi) { nsCOMPtr<nsIXPConnectJSObjectHolder> holder; JSObject* ifaceObj;  if (NS_SUCCEEDED(xpc->WrapNative(aContext, aObj, pi, *iid, getter_AddRefs(holder))) && holder && NS_SUCCEEDED(holder->GetJSObject(&ifaceObj)) && ifaceObj) { *aVp = OBJECT_TO_JSVAL(ifaceObj); retval = PR_TRUE; } } nsMemory::Free(iid); return retval; } } }  return nsGenericHTMLLeafElement::GetProperty(aContext, aObj, aID, aVp);
return GetPluginProperty(aContext, aObj, aID, aVp);
nsHTMLEmbedElement::GetProperty(JSContext *aContext, JSObject *aObj,                                jsval aID, jsval *aVp){  if (JSVAL_IS_STRING(aID)) {    PRBool retval = PR_FALSE;    char* cString = JS_GetStringBytes(JS_ValueToString(aContext, aID));    nsCOMPtr<nsIInterfaceInfoManager> iim =         dont_AddRef(XPTI_GetInterfaceInfoManager());    nsCOMPtr<nsIXPConnect> xpc =        do_GetService(nsIXPConnect::GetCID());     if (iim && xpc) {      nsIID* iid;      if (NS_SUCCEEDED(iim->GetIIDForName(cString, &iid)) && iid) {        nsCOMPtr<nsIPluginInstance> pi;        if (NS_SUCCEEDED(GetPluginInstance(getter_AddRefs(pi))) && pi) {          nsCOMPtr<nsIXPConnectJSObjectHolder> holder;          JSObject* ifaceObj;          if (NS_SUCCEEDED(xpc->WrapNative(aContext, aObj, pi, *iid,                                            getter_AddRefs(holder))) && holder &&               NS_SUCCEEDED(holder->GetJSObject(&ifaceObj)) && ifaceObj) {              *aVp = OBJECT_TO_JSVAL(ifaceObj);              retval = PR_TRUE;          }        }        nsMemory::Free(iid);                return retval;      }    }  }  return nsGenericHTMLLeafElement::GetProperty(aContext, aObj, aID, aVp);}