I'm using the geckofx wrapper with the xulrunner, and I'm wondering if I can get any support on it here.
Basically I've created a simple program with one form containing the GeckoWebBrowser component and a button.
Initially website1 is shown correctly on the form
When clicking the button, the component alternates between 2 websites.
At first this is going well, but after a while (5 or 6 alterations) the component stops repainting itself, and only reflects the new page after the complete form gets repainted (through a simple move or so)
Sample program:
Code: Select all
private GeckoWebBrowser webBrowser;
public Form1()
{
InitializeComponent();
webBrowser = new GeckoWebBrowser();
webBrowser.Name = "WebBrowser";
Xpcom.Initialize(xulrunnerpath);
Controls.Add(webBrowser);
webBrowser.Dock = DockStyle.None;
webBrowser.Location = new System.Drawing.Point(0, Height / 2);
webBrowser.Size = new System.Drawing.Size(Width, Height / 2);
}
private void Form1_Load(object sender, EventArgs e)
{
webBrowser.Navigate(@"http://www.google.com");
}
bool swap = false;
private void button1_Click(object sender, EventArgs e)
{
if (swap)
webBrowser.Navigate(@"http://tweakers.net");
else
webBrowser.Navigate(@"http://thedailywtf.com");
swap = !swap;
}
Anyone has an idea what's going wrong, or point me in the right direction for an answer?
I've tried this with diffent gecko versions >= 13.0 and different xul versions but this behaviour remains constant for all those versions/combinations