Closed Bug 208207 Opened 23 years ago Closed 23 years ago

Javascript fails to open a new window immediately after closing an older one.

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: buzzbomb, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529 There are several thumbnails on a page. The idea is that a user will click on a thumbnail and a sized window will pop-up with the picture in it. If the user proceeds to click on another picture without closing the pop-up window, the pop-up window will be closed and then recreated with the new picture using Javascript. A live example can be found at http://dsinnovations.com/mozilla/ with code listings, etc. This isn't a pop-up blocker or Javascript security problem. No errors are shown in the Javascript console either. Reproducible: Always Steps to Reproduce: 1. Go to http://dsinnovations.com/mozilla/ 2. Click on the 'X' thumbnail. 3. Note the pop-up window opened by Javascript. 4. Without closing that pop-up window, click on the 'O' thumbnail. 5. The pop-up window is closed properly, but the new window is NOT opened as it should be. 6. If you click on the 'O' thumbnail again, a pop-up window will be created. Return to step 4. Actual Results: The new window isn't opened after the old one is closed. Expected Results: It should have opened a new window with the window.open(...) call. This worked fine in Mozilla 1.3. I upgraded to Mozilla 1.4rc1 and noticed it was broken. I'm afraid I don't know the exact build in which it broke or changed.
I neglected to mention that this works fine on IE 6 and Netscape 4.x.
WFM LInux 2003060308 OT: I've seen other sites on the net that just replace the popup with a new image(page?) so you don't have to close and then open a new window, but I don't know how.
That's fine and easy to do, but certain pictures on some of the sites I develop are different sizes. I'm trying to work within constraints of pop-up blocking and script security.
I believe this was recently fixed, can you download a fresh build and retest?
Yes. This works in the 1.5a nightly build I downloaded, but I really think it needs to be backported to 1.4 final. Should I contact anyone in particular?
If it was fixed by bug 205474 as I think it was, then it's already fixed in 1.4 final. Please do test tho, if you have a chance (download the latest 1.4 branch build and report back).
Yes! The 6/9/2003 build of Mozilla 1.4 does have this fix implemented. Way to go, guys. Glad I could help...if any.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.