I'm working on a web browser. Once the textbox isn't selected anymore it should remove http:// and the last /. To do that I'm using the leave method of the textbox. This code works perfectly fine with the normal WebBrowser.
if (W.DocumentTitle != "")
{
q.Text = "" + W.Url;
q.Text = q.Text.Replace("http://www.", "");
q.Text = q.Text.Replace("https://www.", "");
q.Text = q.Text.Replace("http://", "");
q.Text = q.Text.Replace("https://", "");
if (q.Text.EndsWith("/"))
{
q.Text = q.Text.Substring(0, q.Text.Length - 1);
}
}
In GeckoFX however the textbox still displays http:// and /!?!?!