Closed Bug 145628 Opened 23 years ago Closed 23 years ago

unrequested popup window blocking does not work on NYTimes.com

Categories

(SeaMonkey :: Preferences, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 126224

People

(Reporter: mozilla2, Assigned: bugs)

Details

Attachments

(1 file)

Using the toggle in Preferences -> Advanced -> Scripts & Windows, I have selected the option to disallow web pages from opening unrequested popups. For the most part, this works. However, the NY Times website still pops up an ad window sometimes. After looking at the source of the web page, I think it is because the popup is spawned by javascript in the onLoad attribute of an image like so: <img src="http://graphics7.nytimes.com/ads/usga/blank.gif" onLoad="window.open('http://ad.doubleclick.net/adi/N2870.ny/B961809;sz=720x300;ord=2002.05.19.19.08.51','MyWindow','toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=720,height=300, top=0');window.focus();" BORDER=0"> I'm guessing that Mozilla blocks window.open() from the <BODY> onLoad attribute, but not from the <img> onLoad handler and that is why this is succeeding.
This is the source to an instance of the NY Times homepage that spawns a popup ad window in spite of my setting to disallow unrequested popups.
See also Bug 140638
Hmmm... it does look like a duplicate. Although the ad I was referring to is a popup, I think the only difference there is in an invocation to window.focus() in the latter case. I'll leave it to someone else to determine if these are exactly the same.
Browser, not engine. Reassigning to Preferences component as with other bugs of this type. This is either a duplicate of bug 126224 "NY Times web sites creates pop-up windows even if that feature is disabled" or bug 140638 "nytimes pop under ads return in build 2002042608" Ketan: what happens if you try the blocking method explained at the beginning of bug 140638? > In Mozilla 0.9.9, you could add this entry to user.js and kill > the pop under ads generated by www.nytimes.com: > // Kill NYTIMES popunder ads > user_pref("dom.disable_open_click_delay", 1000); Does that stop the ads for you? Also, please include the build ID of Mozilla that you are using; that should be in any bug report; thanks -
Assignee: rogerl → ben
Component: JavaScript Engine → Preferences
QA Contact: pschwartau → sairuh
user_pref("dom.disable_open_click_delay", 1000); That preference setting seems to do the trick. Should that be one of the things set by the "allow unrequested windows" preference toggle? I don't know what that preference above means. Oops, I thought bugzilla would pick up the version automatically. I'm using Mozilla 1.0 RC2 on Windows 2000 SP2.
Ketan: thanks. I'm going to mark this as a duplicate of bug 126224. > That preference setting seems to do the trick. Should that be > one of the things set by the "allow unrequested windows" preference > toggle? I don't know what that preference above means. See bug 126224 for a discussion of this, and bug 132031, "Need UI for new dom.disable_open_click_delay pref" You might want to cc yourself on the latter one - *** This bug has been marked as a duplicate of 126224 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
*** Bug 158462 has been marked as a duplicate of this bug. ***
Alias: nytimes
*** Bug 158536 has been marked as a duplicate of this bug. ***
Alias: nytimes
marking verified as a duplicate. if you decide to reopen this bug, please clarify why. search string for bugspam removal: SalviaGuaranitica
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: