From bc0c4c4f3ed86b0ae5b7f210ee62885ad74635b4 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Sun, 8 Apr 2007 17:49:42 +0000 Subject: Don't block new windows for Adjust-click on target='_blank' links. svn path=/trunk/netsurf/; revision=3253 --- desktop/browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/browser.c b/desktop/browser.c index 42b0d0efb..dbbe30251 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -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")))) { -- cgit v1.2.3