Fix links not being opened when link target is a new window.
* src/client/components/client-web-view.vala (ClientWebView::on_decide_policy): Handle new window policy as well as nav actions.
This commit is contained in:
parent
a72d845b35
commit
7063907688
1 changed files with 2 additions and 1 deletions
|
|
@ -366,7 +366,8 @@ public class ClientWebView : WebKit.WebView {
|
|||
private bool on_decide_policy(WebKit.WebView view,
|
||||
WebKit.PolicyDecision policy,
|
||||
WebKit.PolicyDecisionType type) {
|
||||
if (type == WebKit.PolicyDecisionType.NAVIGATION_ACTION) {
|
||||
if (type == WebKit.PolicyDecisionType.NAVIGATION_ACTION ||
|
||||
type == WebKit.PolicyDecisionType.NEW_WINDOW_ACTION) {
|
||||
WebKit.NavigationPolicyDecision nav_policy =
|
||||
(WebKit.NavigationPolicyDecision) policy;
|
||||
switch (nav_policy.get_navigation_type()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue