diff options
author | Andreia Gaita <avidigal@novell.com> | 2009-10-26 21:54:04 +0300 |
---|---|---|
committer | Andreia Gaita <avidigal@novell.com> | 2009-10-26 21:54:04 +0300 |
commit | 1a215f62480ec4cfd21077cc5f8834061e83e3ce (patch) | |
tree | f2d1bbe56fa95aa9cb9e05e1b29e0c83b6e8491c | |
parent | eb7b91b36956dd1198d1667dbaa86cab6ba586fd (diff) |
* WebKitHtmlRender.cs: WebKit (1.1.15+) now raises NavigationRequested
events for initial loads from html, with about:blank uri. We only
want to deal with user-generated navigation events, so ignore these.
[backported from r143994]
2009-10-13 Jo Shields <directhex@apebox.org>
svn path=/branches/mono-2-4/mono-tools/; revision=144867
-rwxr-xr-x | docbrowser/ChangeLog | 7 | ||||
-rw-r--r-- | docbrowser/WebKitHtmlRender.cs | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/docbrowser/ChangeLog b/docbrowser/ChangeLog index 7c9d7164..4f67e120 100755 --- a/docbrowser/ChangeLog +++ b/docbrowser/ChangeLog @@ -1,3 +1,10 @@ +2009-10-13 Jo Shields <directhex@apebox.org> + + * WebKitHtmlRender.cs: WebKit (1.1.15+) now raises NavigationRequested + events for initial loads from html, with about:blank uri. We only + want to deal with user-generated navigation events, so ignore these. + [backported from r143994] + 2009-01-29 Andreia Gaita <shana@jitted.com> * MonoWebBrowserHtmlRender.cs: remove first load logic, there is no first diff --git a/docbrowser/WebKitHtmlRender.cs b/docbrowser/WebKitHtmlRender.cs index a9f292df..d698b061 100644 --- a/docbrowser/WebKitHtmlRender.cs +++ b/docbrowser/WebKitHtmlRender.cs @@ -31,6 +31,8 @@ public class WebKitHtmlRender : IHtmlRender { web_view = new WebView (); web_view.Show (); web_view.NavigationRequested += delegate (object sender, NavigationRequestedArgs e) { + if (e.Request.Uri == "about:blank") + return; url = e.Request.Uri; if (UrlClicked != null) UrlClicked (this, new EventArgs()); |