summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2024-03-17 07:48:56 +0100
committerRafael Marçalo <raroma09@gmail.com>2024-06-10 21:13:00 +0100
commit069aa2461b77a05c182eec6613d7d01beb04cf80 (patch)
tree79c2c4832cc65e3b34279084bf5f29690e4e3d40
parentcbf61ec394097d7cdaa72b88e0598d410a92bed2 (diff)
Update get frame name function
webkit_navigation_policy_decision_get_frame_name has been deprecated since 2.40.
-rw-r--r--surf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/surf.c b/surf.c
index 9bc9ef3..c5e89b6 100644
--- a/surf.c
+++ b/surf.c
@@ -1698,8 +1698,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 ? */