Closed
Bug 301970
Opened 19 years ago
Closed 19 years ago
window.open() for a given window fails the second time.
Categories
(Camino Graveyard :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino0.9
People
(Reporter: sfraser_bugs, Assigned: sfraser_bugs)
References
Details
(Keywords: regression)
Attachments
(1 file)
459 bytes,
text/html
|
Details |
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.
Assignee | ||
Comment 1•19 years ago
|
||
Assignee | ||
Comment 2•19 years ago
|
||
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.
Assignee | ||
Comment 3•19 years ago
|
||
Possibly a recent regression, could break some sites.
Severity: normal → major
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → Camino0.9
Assignee | ||
Comment 4•19 years ago
|
||
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.
Assignee | ||
Updated•19 years ago
|
Keywords: regression
Comment 6•19 years ago
|
||
Should probably retest in tomorrow's builds before resolving...
The testcase in comment 2 works now (20050730), so marking this fixed per comment 5.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•