Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreia Gaita <avidigal@novell.com>2009-10-13 04:54:21 +0400
committerAndreia Gaita <avidigal@novell.com>2009-10-13 04:54:21 +0400
commit8b341cb4b200a1f890e2633a1320dad61fb69721 (patch)
tree5722eb281e762d91dc5986fcb674e6b17b48a5ba /docbrowser
parent39bae32662dda920ce6834ee9ab9a622de174649 (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. 2009-10-13 Jo Shields <directhex@apebox.org> svn path=/trunk/mono-tools/; revision=143994
Diffstat (limited to 'docbrowser')
-rwxr-xr-xdocbrowser/ChangeLog6
-rw-r--r--docbrowser/WebKitHtmlRender.cs2
2 files changed, 8 insertions, 0 deletions
diff --git a/docbrowser/ChangeLog b/docbrowser/ChangeLog
index 30bb232a..954495c1 100755
--- a/docbrowser/ChangeLog
+++ b/docbrowser/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2009-09-29 Jonathan Pryor <jpryor@novell.com>
* browser.cs: The make-index, make-search-index, and merge-changes
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());