Closed Bug 155134 Opened 22 years ago Closed 22 years ago

pop-up blocking doesn't block <img onload>

Categories

(SeaMonkey :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 126224

People

(Reporter: jmorzins, Assigned: Matti)

References

()

Details

I like Mozilla's ability to block unrequested pop-up windows.

Unfortunately, I've seen pages that are not successfully blocked by mozilla.

I've copied one of them at the URL in the url field above; the core of the
problem seems to be based on the way the javascript uses
  document.write('<scr'+'ipt 
to generate the page's html.  Mozilla's popup detector seems not to notice
the scripts when they are defined this way.
pop-up opens because of <img onload>, not '<scr'+'ipt>'

<html>
<body>
<img src="http://mozilla.org/images/mozilla-banner.gif"
onload="window.open('http://www.yahoo.com');return false;" />
</body>
</html>

reporter: please change bug summary to reflect this.
Summary: pop-up blocking doesn't block document.write('<scr'+'ipt ') → pop-up blocking doesn't block <img onload>
We already have a mechanism in place to prevent this - there's just no GUI for
it so far.

Adding this pref to your user.js file (create if necessary) should fix the problem:
user_pref("dom.disable_open_click_delay", 1000);

*** This bug has been marked as a duplicate of 126224 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.