diff options
author | Marco Peereboom <marco@conformal.com> | 2010-02-21 13:14:25 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2010-02-21 13:14:25 +0000 |
commit | d0a75dc7cc426a63208f6a88869d397e8a98b916 (patch) | |
tree | 00a9d44e8d0feb0bcfacb7431db2bef449238ed3 | |
parent | a3bc137c5bcab9850905332412d2314b4026edc0 (diff) | |
download | xombrero-d0a75dc7cc426a63208f6a88869d397e8a98b916.tar.gz |
Cleanup of policy decision code
-rw-r--r-- | xxxterm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c index d1b0854..c0ed792 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -588,13 +588,18 @@ webview_npd_cb(WebKitWebView *wv, WebKitWebFrame *wf, { char *uri; - DNPRINTF(XT_D_KEY, "webview_npd_cb:\n"); + if (t == NULL) + errx(1, "webview_npd_cb"); + + DNPRINTF(XT_D_NAV, "webview_npd_cb: %s\n", + webkit_network_request_get_uri(request)); if (t->ctrl_click) { uri = (char *)webkit_network_request_get_uri(request); create_new_tab(uri, 0); t->ctrl_click = 0; webkit_web_policy_decision_ignore(pd); + return (TRUE); /* we made the decission */ } |