PtMozillaWidget_t *moz = (PtMozillaWidget_t *)mEmbed; PtCallbackList_t *cb; PtCallbackInfo_t cbinfo;
mWebBrowser->SetParentURIContentListener(nsnull);   nsCOMPtr <nsIDocShell> docShell = do_GetInterface(mWebBrowser); nsCOMPtr <nsIWebProgress> webProgress; webProgress = do_GetInterface(docShell); webProgress->RemoveProgressListener(mChromeProgress);
PhMozEmbedListenerImpl::Destroy(void){	PtMozillaWidget_t *moz = (PtMozillaWidget_t *)mEmbed;	PtCallbackList_t *cb;	PtCallbackInfo_t cbinfo;	if (!moz->destroy_cb)		return;	memset(&cbinfo, 0, sizeof(cbinfo));	cbinfo.reason = Pt_CB_MOZ_DESTROY;	cb = moz->destroy_cb;	PtInvokeCallbackList(cb, (PtWidget_t *)mEmbed, &cbinfo);}