When a page uses window.open() to open a window, like: window.open('http://www.smfr.org', 'window_name', 'scrollbars=0,resizable=no') if you close the resulting window and click the button again, no window is opened. My guess is that the nsWindowWatcher thinks the window is still around, so refuses to open a 2nd one.
I debugged this. The code path between the working first click, and the broken second click on the button diverges in nsJSEventListener::HandleEvent() on the if (JS_TypeOfValue(cx, funval) != JSTYPE_FUNCTION) test. The first time, funval is something reasonable. The second time, it's 0x80000001 so we bail. I've no idea why this is broken. When the popup is closed, we're calling nsWindowWatcher::RemoveWindow(), so it's not a nsWindowWatcher issue.
Possibly a recent regression, could break some sites.
Severity: normal → major
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → Camino0.9
First broke in 20050330. Checkins: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2005-03-29+08%3A00%3A00&maxdate=2005-03-30+08%3A00%3A00&cvsroot=%2Fcvsroot Maybe regression from bug 283129 or bug 225563? What's odd is that this is not a problem in DeerPark.
Should probably retest in tomorrow's builds before resolving...
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.