mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 23:09:43 +03:00
Don't block new windows for Adjust-click on target='_blank' links.
svn path=/trunk/netsurf/; revision=3253
This commit is contained in:
parent
81ef52dd22
commit
bc0c4c4f3e
@ -1020,7 +1020,10 @@ struct browser_window *browser_window_find_target(struct browser_window *bw, con
|
||||
target = TARGET_SELF;
|
||||
|
||||
/* allow the simple case of target="_blank" to be ignored if requested */
|
||||
if ((!option_target_blank) && ((target == TARGET_BLANK) || (!strcasecmp(target, "_blank")))) return bw;
|
||||
if ((!new_window) && (!option_target_blank)) {
|
||||
if ((target == TARGET_BLANK) || (!strcasecmp(target, "_blank")))
|
||||
return bw;
|
||||
}
|
||||
|
||||
/* handle reserved keywords */
|
||||
if ((new_window) || ((target == TARGET_BLANK) || (!strcasecmp(target, "_blank")))) {
|
||||
|
Loading…
Reference in New Issue
Block a user