Unlike mfcembed I don't override prompt-service and all prompt windows are implemented in XUL.
The problem is that alert windows are not sized properly. The size of alert window is defined by initial size of MFC frame window and it is never changed. Alert windows should be sized to content. The same is true for all MDI child windows with any XUL content. Windows are not sized accoring to <window width="100"> element.
But when I call sizeToContent() from within javascript, the frame window gets resized! I am implementing nsIEmbeddingSiteWindow::SetDimensions().
Am I missing something?
Could it be security related? My application comes with own mozilla distribution included and displays only own XUL documents, so I would like to grant full access rights for everything. How to do this? I set these preferences on startup:
prefs->SetBoolPref("dom.allow_scripts_to_close_windows", true);
prefs->SetBoolPref("signed.applets.codebase_principal_support", true);
prefs->SetCharPref("capability.principal.codebase.p0.granted",
"UniversalXPConnect UniversalBrowserWrite UniversalBrowserRead UniversalFileRead");
prefs->SetCharPref("capability.principal.codebase.p0.id", "file://");
Is this enough?
Thanks for responses. Jan Soltis _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
