using chrome: 1) How do I open a modal dialog in an embedding app 2) How do I open a chrome URL in mfcembed with chrome privliges?
In my embedding app, calling javascript:
window.openDialog("chrome://doxygen/content/doxybrowse.xul", "_parent", "modal,centerscreen,chrome,resizable=no");
results in the window being opened in the browser frame window, not as a modal dialog. I also tried "_top" and "_self" with the same result. I'm thinking it is something fundemental with structure of my app so I want to do this in mfcembed. In mfcembed the dialog won't open with the following error:
JavaScript error:
line 0: uncaught exception: [Exception... "Security error" code: "1000" nsresu
lt: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "file:///F:/cvs/mozilla/
firebird/dist/bin/chrome/doxygen/content/doxygen.js Line: 65"]
I am using the -chrome commandline but the call to:
// If the browser window hosting chrome or content?
dsti->SetItemType(((CMfcEmbedApp *)AfxGetApp())->m_bChrome ?
nsIDocShellTreeItem::typeChromeWrapper :
nsIDocShellTreeItem::typeContentWrapper);Although, successfully passes nsIDocShellTreeItem::typeChromeWrapper, it does nothing because at the time it is called, nsWebBrowser::mDocShellAsItem is null.
I use the menu command File|Open File... to open the .xul file.
Thanks _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
