Dorian B. wrote:
"Niky" <[EMAIL PROTECTED]> a écrit :
1) How can I tell on the nsIWindowCreator::CreateChromeWindow () when
I need to use nsIDocShellTreeItem::typeChromeWrapper as opposed to
nsIDocShellTreeItem::typeContentWrapper?
when CHROME_OPENAS_CHROME is set in chromeFlags
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?
This is a know issue. You have to do something like this:
nsCOMPtr<nsIJSContextStack>
stack(do_GetService("@mozilla.org/js/xpc/ContextStack;1"));
if (stack && NS_SUCCEEDED(stack->Push(nsnull))) {
/* Display the modal window here */
JSContext* cx;
stack->Pop(&cx);
}
The fact is you should do that whenever you're about to display a modal
dialog.
Dorian/Boris,
Oh Ya, chromeFlags...duh.
Thanks so much for your input on the 2nd issue...it would have taken me
forever to find that on my own. I was not aware, as Boris stated in
another email, that this needed to be done for each modal window as
well. I'll try not to bother ya'll any more lol, once again, thanks so
much!
Nik Williams
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding