Stanimir Stamenkov wrote:
Sun, 02 Oct 2011 11:34:46 -0400, /Tom S./:

I have SM 2.4.1 running on Win XP SP3.

Here's something that's bugged me for a long
while. I
thought eventually someone else would bring it up
and soon after, it would be fixed. Oh well.

Why is it SM no longer stops pop-ups?

SM continues to stop automatic popups. I don't see
a change in the behavior.

When a page loads that has a pop-up, I have
assigned a "pop" sound and the highlighted
exclamation point shows on the bottom toolbar. But
then, if I should click anywhere on the page, the
pop-up will open into a new tab, instead of
remaining suppressed. This happens on almost all
websites that use pop-ups. (Oftentimes, they will
use Flash for these pop-ups, but the Flashblock
extension disables it, so it only shows the "F"
button.)

Is there anything I can change to prevent the
pop-ups from happening?

You may stop interacting with the page but I don't
think that's much useful for you. Unfortunately
popups triggered from an interactive actions are
not blocked, otherwise it would block all
legitimate popups triggered explicitly by you.

You may however try to blocking somewhat more
(than the default setup) or most popups with the
Edit -> Preferences: Browser / Link Behavior
settings:

Open links meant to open a new window in:
(x) The current tab/window

When scripts want to open a new window:
(x) Always divert windows into tabs

The label for the later is somewhat confusing
according the real preference documentation [1]:

| 0
| Divert all links according to
browser.link.open_newwindow.
| This includes:
| * All HTML links with target="_blank".
| * All JavaScript calls to window.open().

That should mean no new windows/tabs could be
created by web content - only explicitly by you
(e.g. using Ctrl+N or Ctrl+T).

Using the default value for the second option with
the changed value for the first would also block
more but no all of the popups (see what fits bets
for you):

Open links meant to open a new window in:
(x) The current tab/window

When scripts want to open a new window:
(x) Don't divert custom windows into tabs

The later really means:

| 2
| Divert all links according to
browser.link.open_newwindow, unless
| the new window specifies how it should be
displayed.
| This includes:
| * All links with target="_blank".
| * JavaScript calls to window.open() without the
"features"
| parameter (3rd parameter).
| This does not include:
| * JavaScript calls to window.open() with the
"features"
| parameter (3rd parameter).

This will eliminate more of the new windows,
unless opened by scripts with "features" parameter.

[1]
<http://kb.mozillazine.org/Browser.link.open_newwindow.restriction>



Thanks. I changed this setting from 0 to 2 in the config editor (about:config). So, now when a pop-up opens, it is in a new small window instead of another tab. I can close it with Alt-F4 on the keyboard instead of using the mouse.

_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to