From: Quentin Rameau Date: Sun, 17 Mar 2024 06:48:56 +0000 (+0100) Subject: Update get frame name function X-Git-Url: http://git.skullheadx.com/nixos/static/gitweb.js?a=commitdiff_plain;h=7513a622e3d0d0fd2cc1a372dd1fd8b087922691;p=surf.git Update get frame name function webkit_navigation_policy_decision_get_frame_name has been deprecated since 2.40. --- diff --git a/surf.c b/surf.c index 72b4933..209120f 100644 --- a/surf.c +++ b/surf.c @@ -1664,8 +1664,7 @@ decidenavigation(WebKitPolicyDecision *d, Client *c) case WEBKIT_NAVIGATION_TYPE_OTHER: /* fallthrough */ default: /* Do not navigate to links with a "_blank" target (popup) */ - if (webkit_navigation_policy_decision_get_frame_name( - WEBKIT_NAVIGATION_POLICY_DECISION(d))) { + if (webkit_navigation_action_get_frame_name(a)) { webkit_policy_decision_ignore(d); } else { /* Filter out navigation to different domain ? */