I've been playing around with it, and I've focused the problem down to the application I was working on and how it handled the windows; there was a separate window opening up when the Security Certificate dialog came up. It looks like this is how Mozilla does the security warnings, by opening a new window, instead of a simple modal dialog on top of the screen as IE does it. Anyway, after some tweaking, I was able to get the certificate dialog to appear.
Here is my new problem: The window that asks if I want to accept the security certificate doesn't work. I can click the radio buttons between the different options, but if I click any of the buttons like OK or Examine Certificate, the dialog locks up; I can close the window, but the certificate doesn't get installed. Is there some code that has to be added in order to get such dialogs to work, or is there some place to put code that might interfere with the normal dialog operation that has to go. I don't have the code with me (its at work, and my newsgroup connection is at home), but its MFC-based and uses DDX. the-Forbidden In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Niky Williams wrote: > > the-Forbidden wrote: > >> I'm new to Mozilla's Gecko, and I'm trying to incorporate it into a > >> Visual C++ project, using the Mozilla ActivaX control in place of the > >> IE WebControl; one problem is that it doesn't handle secure webpages. > > The issue is probably in the GetFile method of the local file provider. > It needs to support NS_APP_PROFILE_DEFAULTS_50_DIR > here is one that works for SSL > > NS_IMETHODIMP > winEmbedFileLocProvider::GetFile(const char *prop, PRBool *persistant, > nsIFile **_retval) > { > nsCOMPtr<nsILocalFile> localFile; > nsresult rv = NS_ERROR_FAILURE; > > *_retval = nsnull; > *persistant = PR_TRUE; > > if(strcmp(prop, NS_APP_APPLICATION_REGISTRY_DIR) == 0) > rv = GetProductDirectory(getter_AddRefs(localFile)); > else if(strcmp(prop, NS_APP_APPLICATION_REGISTRY_FILE) == 0) > { > rv = GetProductDirectory(getter_AddRefs(localFile)); > if(NS_SUCCEEDED(rv)) > rv = localFile->AppendNative(APP_REGISTRY_NAME); > } > else if(strcmp(prop, NS_APP_DEFAULTS_50_DIR) == 0) > { > rv = CloneMozBinDirectory(getter_AddRefs(localFile)); > if(NS_SUCCEEDED(rv)) > rv = > localFile->AppendRelativeNativePath(DEFAULTS_DIR_NAME); > } > else if(strcmp(prop, NS_APP_PREF_DEFAULTS_50_DIR) == 0) > { > rv = CloneMozBinDirectory(getter_AddRefs(localFile)); > if(NS_SUCCEEDED(rv)) > { > rv = > localFile->AppendRelativeNativePath(DEFAULTS_DIR_NAME); > if(NS_SUCCEEDED(rv)) > rv = > localFile->AppendRelativeNativePath(DEFAULTS_PREF_DIR_NAME); > } > } > else if(strcmp(prop, NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR) == 0 || > strcmp(prop, NS_APP_USER_PROFILE_50_DIR) == 0 || > strcmp(prop, NS_APP_PROFILE_DEFAULTS_50_DIR) == 0) > { > rv = CloneMozBinDirectory(getter_AddRefs(localFile)); > if(NS_SUCCEEDED(rv)) _______________________________________________ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding