Niky wrote:
Dorian B. wrote:
"Niky Williams" <[EMAIL PROTECTED]> a écrit :
This makes absolutely no sense. I've implemented the
nsIPromptService in my embedding app and they work plenty fine. I've
created a page that tests each function of nsIPromptService and they
work as designed...THEN I get this prompt "Security Error: Domain
Name Missmatch" on a different site, the buttons are there...the
title is there....but NO text. I can click on any of the buttons but
nothing happens. I've tried trapping which nsIPromptService function
it calls...was assuming nsIPromtService:ConfirmEx (). But to no
avail...it's like it doesn't even use my prompt service for this
prompt. Am I missing something here? I don't understand why this
particular prompt is not behaving like it should. Thanks in advance
to anyone who can shed some light on this issue.
This dialog is one of thoses that are not handled by the prompt
service. If you want to implement them you need to implement another
interfaces (nsIBadCertListener in that specific case I think).
Now if the original dialog doesn't work correctly, it's because you're
app is not handling chrome content correctly.
Dorian,
Thanks for the reply. I find it odd that everything else seems to work
fine with my app. Knowing that you have not seen my code or know much
about my application, is there some particular ball park area you could
point to that I might look into to see if I have not handled it
correctly? Any hint or ideas would be greatly appreciated, since
everything else seems to work okay that I've come across, this just
baffles me. Again, thanks for the reply.
Nik Williams
Dorian (or whoever),
Okay, I've made some progress on this, maybe someone will have some more
ideas on where to look next. I figured out that on my
nsIWindowCreator::CreateChromeWindow () implementation, if I change the
doc shell tree item's type to nsIDocShellTreeItem::typeChromeWrapper as
opposed to nsIDocShellTreeItem::typeContentWrapper when that security
popup comes up I get text in the security popup box and I can view the
certificate. But the "Ok" button just closes out the window and does
not progress the screens to the secure site. So, I have 2 questions here:
1) How can I tell on the nsIWindowCreator::CreateChromeWindow () when I
need to use nsIDocShellTreeItem::typeChromeWrapper as opposed to
nsIDocShellTreeItem::typeContentWrapper? I looked at
nsIDocShellTreeItem::GetName (), but it just returned a blank. For
testing purposes I just said if there is a parent, use the ChromeWrapper
as opposed to ContentWrapper. I know this is wrong, but it was only for
testing my theory.
2) Any idea where to look to try and figure out why the "Ok" button is
not telling the browser to progress on to the secure site?
Thanks in advance to anyone who can shed some light on this matter.
Nik Williams
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding