this.wkview.navigation_policy_decision_requested.connect(on_navigation_policy_decision_requested);
this.wkview.new_window_policy_decision_requested.connect(on_navigation_policy_decision_requested);
- // Load the HTML into WebKit.
- // Note: load_finished signal MUST be hooked up before this call.
- string html_text = GearyApplication.instance.read_theme_file("message-viewer.html") ?? "";
- load_string(html_text, "text/html", "UTF8", "");
+ //
+ webcontext.register_uri_scheme("xhttp", ( request) => {
+ // request is URISchemeRequest
+
}
private bool on_navigation_policy_decision_requested(
// not sure if we should allow navigations...
return true;
}
+
+
+
}