Closed Bug 146297 Opened 22 years ago Closed 22 years ago

[RFE] Popup blocker fooled by form submit using javascript

Categories

(SeaMonkey :: General, enhancement)

x86
All
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 144726

People

(Reporter: w.k.havinga, Assigned: Matti)

References

()

Details

RFE: Popup blocker enhancemant Long description: This code, found in an online game I'm playing, bypasses the current Mozilla banner blocker. It consistently opens a 'pop-under' banner from popupad.net, even though I have the option 'Open unrequested windows' turned off. Relevant part from my prefs.js: user_pref("capability.policy.default.Window.open", "noAccess"); ... user_pref("dom.disable_open_click_delay", 2500); (added by myself, but doesn't help) user_pref("dom.disable_open_during_load", true); Wanted behaviour: Popup should not 'pop up'. Actual behaviour: Popup *does* pop up. Tested on: Mozilla RC2 on MS Windows (686) and Linux 2.4.x (686). I realize I can hardly call this a bug - but if anyone could find a smart way to get around this, it would be appreciated a lot! Suggestion: Maybe it could work like this - If the 'Do not open unrequested windows' function is enabled, Javascript should not be able to submit forms that have a not-yet-existing target (i.e. one that will open in a new window). This is the offending code (stripped to the minimal form that still works, and with a changed action - it actually opens the Mozilla homepage in a new window now, instead of an irritating flashy banner page): Btw. you will find the same code at the URL mentioned. <HTML> <HEAD></HEAD> <BODY> <form name="flauncher" action="http://www.mozilla.org" target="nonexistingtarget" method="get"></form> <script language="JavaScript"> <!--// document.flauncher.submit(); // --> </script> </BODY> </HTML>
*** This bug has been marked as a duplicate of 144726 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.