1
0
mirror of git://git.suckless.org/surf synced 2024-12-11 17:29:38 +00:00

Update get frame name function

webkit_navigation_policy_decision_get_frame_name has been deprecated
since 2.40.
This commit is contained in:
Quentin Rameau 2024-03-17 07:48:56 +01:00
parent 4bab57968d
commit 7513a622e3

3
surf.c
View File

@ -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 ? */