summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2013-07-29 15:43:41 +0200
committerDaniel Carl <danielcarl@gmx.de>2013-07-29 15:43:41 +0200
commit611f8ff8c73531fd8a0dfce2e8580ff527c4d2d4 (patch)
tree74c4ba57a23c65ea4032d643b420ebe0d5db1da2
parentb1fa08da897a8f98609098a8612354a11d07b099 (diff)
Don't put 'about:*' uri into history.
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 10f0165..6af9d72 100644
--- a/src/main.c
+++ b/src/main.c
@@ -471,8 +471,9 @@ static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec)
vb_update_statusbar();
dom_check_auto_insert(view);
-
- history_add(HISTORY_URL, uri, webkit_web_view_get_title(view));
+ if (strncmp(uri, "about:", 6)) {
+ history_add(HISTORY_URL, uri, webkit_web_view_get_title(view));
+ }
break;
case WEBKIT_LOAD_FAILED: