return NS_ERROR_FAILURE;
if(mOwner != nsnull) { nsIPluginInstance *inst; if(NS_OK == mOwner->GetInstance(inst)) { PRBool doCache = PR_TRUE; PRBool doCallSetWindowAfterDestroy = PR_FALSE;   inst->GetValue(nsPluginInstanceVariable_DoCacheBool, (void *) &doCache); if (!doCache) {   inst->GetValue(nsPluginInstanceVariable_CallSetWindowAfterDestroyBool, (void *) &doCallSetWindowAfterDestroy); !doCallSetWindowAfterDestroy ? inst->SetWindow(nsnull) : 0; inst->Stop(); inst->Destroy(); doCallSetWindowAfterDestroy ? inst->SetWindow(nsnull) : 0;      } else { inst->SetWindow(nsnull); inst->Stop(); } NS_RELEASE(inst); } }   return NS_OK;
PluginViewerImpl::Destroy(void){  return NS_ERROR_FAILURE;}