Don't block new windows for Adjust-click on target='_blank' links.

svn path=/trunk/netsurf/; revision=3253
This commit is contained in:
Richard Wilson 2007-04-08 17:49:42 +00:00
parent 81ef52dd22
commit bc0c4c4f3e

View File

@ -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")))) {