Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [browser] Question regarding WindowEvent boolean fields
[browser] Question regarding WindowEvent boolean fields [message #449682] Thu, 27 January 2005 22:09 Go to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hi,

again this post deals with blocking popups from the IE. Now, the flags
inside WindowEvent (menuBar, statusBar, ...)
give a good hint, wether the webpage that is about to be shown is a
popup or not. In the Browser example where
popups are blocked a webpage is only considered a popup, when all fields
are boolean FALSE.

I wonder why this is necessary. Does'nt a single FALSE flag (e.g.
menuBar = false) tell enough, that the
webpage is a popup? Or at least, that the webpage was opened in a result
of JavaScript (window.open()).

If that is the case, popup blocking would be more efficient if the
fields are compared with OR and not AND.

I know that this solution would be kind of restrictive, since some pages
might use window.open() as a way
to display their websites. I watched how Firefox is blocking popups: Any
JavaScript code that is triggered
by the events "onLoad" or "onClose" are ignored, whereas an open()
Method in a link or "onClick" is allowed.

But my question is, who sets these fields? Is it set by the parameters
of the "open()" JavaScript call, or
could it also be set by the browser itself (e.g. the user has chosen to
not display the status bar on any
webpage). If that is the case, it would not make sense to compare the
fields with OR, since then the user
would not be able to use the Browser at all.

Thanks for helping,
Ben
Re: [browser] Question regarding WindowEvent boolean fields [message #449759 is a reply to message #449682] Fri, 28 January 2005 21:28 Go to previous message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
> Is it set by the parameters of the "open()" JavaScript call, or
Yes.

Chris
Previous Topic:Browser widget question
Next Topic:How to embed Mozilla browser into a View?
Goto Forum:
  


Current Time: Mon Nov 18 13:42:35 GMT 2019

Powered by FUDForum. Page generated in 0.01888 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top