Re: Embedding Xulrunner 2.0: CreateChromeWindow2 (e.g. if Xulrunner Requests a Window for a simple Alert Box): chrome://global/content/commonDialog.xul rendered without content

[email protected] Tue, 27 Mar 2012 02:54:19 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.embedding
Organization http://groups.google.com
Message-ID <12772580.1131.1332842059866.JavaMail.geo-discussion-forums@ynuu20>
Hello Dominik,

I'm replying to this old thread because I have the same problem.

Have you found a solution since then?

Best regards.
-- arcoun

On Wednesday, April 20, 2011 4:51:29 PM UTC+2, dhoelzl wrote:
> If Embedding Xulrunner 2.0 it requests for a new window with a browser inside
> if e.g. a web page opens a simple alert box.
> It calls nsIWindowCreator2::CreateChromeWindow2 and renders the dialog box
> content into the returned nsIWebBrowserChrome.
> 
> That works all fine, but inside the returned nsIWebBrowserChrome only the
> URL of the dialog content (chrome://global/content/commonDialog.xul) is
> displayed, but without content (like i just enter the chrome url in the
> firefox 4.0 browser). It seems that the parameters for the XUL get lost
> somewhere.
> 
> If using Xulrunner 1.9.2 all works fine.
> (Xulrunner 1.9.2 uses nsIPromptService2 to display alert boxes, but other
> XUL-dialogs like the certificate error dialog works well)
> 
> Does anybody know what changed inside the Xulrunner framwork?
> Debugging Xulrunner where it looses the parameters seems to be very
> elaborate.
> 
> Greetings,
> Dominik