"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.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding