Closed Bug 232954 Opened 21 years ago Closed 21 years ago

'Spoof' popups in JavaScript

Categories

(SeaMonkey :: UI Design, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 187108

People

(Reporter: thesh_bugs, Assigned: jag+mozilla)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 If you have a script like this: var popup=window.open("http://www.mozilla.org","popup",'width=320,height=240'); if (popup) { document.write('[insert page content]'); } else { document.write('Disable your popup blocker'); } You can force users to disable their popup blockers, otherwise they won't be able to view the page. I believe that a potential solution to this is to add an option to spoof, in a way, the popup. So if (and only if) Mozilla blocks the popup it should still execute the script as if the popup was opened, with the exception of anything that would otherwise occur inside the popup window. If added, it should probably not be enabled by default. Reproducible: Always Steps to Reproduce:
Attached file Test case.
Added test case with JavaScript.
Keywords: testcase
"You can force users to disable their popup blockers" No, you can't, never. All you can do is blow away potential visitors, if you're stupid enough to use something like this. I am not aware of a single site that blocks visitors for not opening their popups. Can you add some, or even a single URL? Oh, and I assume this will be WONTFIX'ed anyway.
This is already filed (and wontfixed, iirc). Please search and mark this duplicate.
Whiteboard: DUPEME
My guess is that they're on sites that rely on popups for their UI, rather than adverts. But I don't know. But this was bad design even before popup blockers were invented. How many of you didn't tend to close popups before they were loaded? But yes, there are too many control freaks out there. Do we reckon this should block bug 86194 and/or bug 176958?
(In reply to comment #2) > "You can force users to disable their popup blockers" > > No, you can't, never. All you can do is blow away potential visitors, if you're > stupid enough to use something like this. Point taken, but there were similar things done at places like proboards (conforums still does this). It is rare, but I do come accross it on occassions. (In reply to comment #3) > This is already filed (and wontfixed, iirc). Please search and mark this duplicate. The closest I could find is Bug 187108 - is that the one you are talking about?
I'll mark it anyway... *** This bug has been marked as a duplicate of 187108 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Core → Mozilla Application Suite
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: