uri = hsts_get_changed_uri(vb.session, msg);
if (uri) {
webkit_web_view_load_uri(view, uri);
+ webkit_web_policy_decision_ignore(policy);
+ g_free(uri);
/* mark the request as handled */
return true;
}
#endif
/* try to find a protocol handler to open the uri */
- return handle_uri(webkit_network_request_get_uri(request));
+ if (handle_uri(webkit_network_request_get_uri(request))) {
+ webkit_web_policy_decision_ignore(policy);
+
+ return true;
+ }
+ return false;
}
static void hover_link_cb(WebKitWebView *webview, const char *title, const char *link)