Closed
Bug 296300
Opened 20 years ago
Closed 19 years ago
Crash when minimizing window that has onfocus/onblur=window.close()
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: martijn.martijn, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: crash, regression, testcase)
Attachments
(4 files, 1 obsolete file)
551 bytes,
text/html
|
Details | |
2.98 KB,
text/plain
|
Details | |
612 bytes,
text/html
|
Details | |
2.44 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
asa
:
approval1.8b3+
|
Details | Diff | Splinter Review |
See upcoming testcase
- Press the button in the testcase, popup window should come up
- Click on the minimize button of the window
Result: crash
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
Reporter | ||
Comment 3•20 years ago
|
||
It looks like it is a regression, doesn't crash with 2004-05-03 build, crashes
with 2004-05-04 build:
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=2004-05-03+08%3A00%3A00&maxdate=2004-05-04+10%3A00%3A00&cvsroot=%2Fcvsroot
Keywords: regression
Comment 4•20 years ago
|
||
This is a regression from bug 242111. We now hold weak refs to focus
controllers across event dispatch in several places, so we're probably making
method calls on dead objects. I'm not sure where it's safe to hold weak refs
here, though; my first instinct would be "nowhere where we dispatch an event or
set focus".
Comment 5•20 years ago
|
||
There are probably others that need similar treatment...
Comment 6•19 years ago
|
||
I don't crash with build 2005-06-11-05 on Windows XP Seamonkey trunk.
Assignee | ||
Comment 7•19 years ago
|
||
Same as the first testcase but uses 'onfocus' instead of 'onblur'.
Both testcases crashes Firefox on Windows XP, only the second (this) on Linux.
Assignee | ||
Updated•19 years ago
|
Attachment #187310 -
Attachment is patch: false
Attachment #187310 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 8•19 years ago
|
||
I found one more spot that needed fixing (for Testcase #2).
The remaining |focusController| pointers are very local and have no event
handling in their scope so they should be safe.
Attachment #185106 -
Attachment is obsolete: true
Attachment #187311 -
Flags: superreview?(bryner)
Attachment #187311 -
Flags: review?(bryner)
Assignee | ||
Updated•19 years ago
|
Assignee: bryner → mats.palmgren
OS: Windows XP → All
Summary: Crash when minimizing window that has onblur=window.close() → Crash when minimizing window that has onfocus/onblur=window.close()
Comment 9•19 years ago
|
||
No l10n impact, but we should really get this reviewed and landed.
Flags: blocking1.8b3?
Flags: blocking1.8b3-
Flags: blocking-aviary1.1+
Updated•19 years ago
|
Flags: blocking1.8b4?
Comment 10•19 years ago
|
||
Comment on attachment 187311 [details] [diff] [review]
Patch rev. 2
r+sr=bzbarsky. requesting 1.8b3 approval for this very very safe crash fix.
Attachment #187311 -
Flags: superreview?(bryner)
Attachment #187311 -
Flags: superreview+
Attachment #187311 -
Flags: review?(bryner)
Attachment #187311 -
Flags: review+
Assignee | ||
Updated•19 years ago
|
Attachment #187311 -
Flags: approval1.8b3?
Updated•19 years ago
|
Attachment #187311 -
Flags: approval1.8b3? → approval1.8b3+
Assignee | ||
Comment 11•19 years ago
|
||
Checked in 2005-07-02 15:58 PDT
-> FIXED
Status: NEW → RESOLVED
Closed: 19 years ago
Flags: blocking1.8b4?
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•