Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 63233

Summary: [browser] Distinguish between popup and target = blank link
Product: [Eclipse Project] Platform Reporter: Benjamin Pasero <bpasero>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: capelli, carolynmacleod4, gunnar, mikehoeffner, ramgopalmit
Version: 3.0Keywords: usability
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Benjamin Pasero CLA 2004-05-20 11:43:52 EDT
Hi,

it should be possible to distinguish between a new browser window opening from 
a target="_blank" link and a popup that opened from a JavaScript window.open() 
method. Currently its not very user-friendly for the user to either disallow 
all links that open in a new browser window, or allow both target blank links 
and popups. Maybe you could add a field "fromBlankLink" to the 
OpenWindowListener, or develop a LinkListener that reacts on a user selecting a 
target=blank link.

I would even be happy with a way to completly disable JavaScript when using the 
browser from within SWT. 

Regards,
Ben
Comment 1 Ron Capelli CLA 2005-03-09 13:10:27 EST
A related enhancement would be a reliable way to distinguish Javascript
window.open() invoked from an onclick handler (solicited popup) vs an onload
handler (unsolicited popup). 
Comment 2 Benjamin Pasero CLA 2005-03-09 13:54:04 EST
Good point, that would allow to strenghten popup-blocking mechanisms (which
currently depend on the window-decoration of the popup).
Comment 3 Lars Vogel CLA 2019-11-27 07:17:40 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.