Closed Bug 238536 Opened 21 years ago Closed 10 years ago

malfunctioning window created using window.open from an onUnload event

Categories

(Core :: XUL, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: upthewaterspout, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 I can only get this problem to happen using an internal application at my company. We have a page with an onUnload event. That event tries to open a window using window.open. Instead of creating a fully functional window, Mozilla adds a window to the list in the "Window" menu that I cannot switch to. When I look at the server logs I see the Mozilla never tried to download the page that I want to display. When I look at the window using the javascript debugger, it says that the page in the window is about:blank. Once this window has been created, Mozilla is no longer stable. I can't open a new window using File->New->Navigator Window. I can't quit Mozilla normally, I have to force quit. Reproducible: Always Steps to Reproduce: Unfortunately, as I said I can only reproduce the problem with an internal application at my company. I've tried creating an html mock up that exhibits the same problem but I haven't had any success. These are the steps that I see the application going through: 1. We have a frameset with three frames. A navigation frame, a content frame, and a processing frame. 2. I upload a file using a page in the content frame (not sure if this is relevant) 3. I click on a link in the navigation frame. Javascript code changes the page in the content frame and the processing frame as well as redrawing the navigation frame. 4. the onUnload event fires when the original page in the content frame is unloaded, which tries to open a window. Actual Results: From the user interface perspective, nothing happens except that a new window is added to the "Window" menu that I cannot switch to. The page in the content frame does not change. From the server logs, I can see that mozilla downloaded the new page for the content frame and the processing frame, but not for the new window. Expected Results: The content frame should display the new content and the system should open a popup window with the appropriate content for the popup window.. I've reproduced the problem with Mozilla 1.5, 1.6, and the latest nightly build (Build ID 2004032405) I can't reproduce this problem on a PC.
The same Problem occures in Firefox too. Reason for this problem might be the Extension "UserAgentSwitcher" (see: http://chrispederick.com/work/firefox/useragentswitcher/documentation/faq/#faq6) Occures: Firefox (not explicitly tested but several Versions > 1.0) Mozilla (not explicitly tested) Reprocuceable: Yes (Autoupgrade UserAgentSwitcher to newer Version) Similar Problem: FireFox (BugID= 271476) @see: https://bugzilla.mozilla.org/show_bug.cgi?id=271476 Solution: ********* Uninstall UserAgentSwitcher Restart Mozilla/FireFox Install newer Version of UserAgentSwitcher (if you want)
(In reply to comment #1) Please ignore my upper comment. It was for another bug. Sorry, I would delete the comment if I could!
Assignee: jag → nobody
I haven't seen this sort of error in years. Calling it WFM.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.