Closed
Bug 123591
Opened 23 years ago
Closed 23 years ago
crash when popup window receives focus
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: apm, Assigned: asa)
References
()
Details
(Keywords: crash)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
BuildID: 2001122108
on the page, click on http://www.parker.gr/engjotter.html#3 link. there's a
javascript that will open a window. once you put mouse over the window, mozilla
is closed and quality feedback agent pops up.
ps: you may notice failure right away or may need to click on the window,
because i'm usign enlightenment and has set "no focus on new windows" +
"mouseover gives focus".
Reproducible: Always
Steps to Reproduce:
1. open url
2. click on image with 4 pens (3rd pic)
3. put mouse over popup window
Actual Results: browser exited
Expected Results: i'm not sure, but it's a bad behaviour, isn't it?
Comment 1•23 years ago
|
||
Can you retest this with 0.9.8 ?
Severity: normal → critical
Keywords: crash
Comment 2•23 years ago
|
||
WFM: Win98, Mozilla 0.9.8
Mozilla/5.0 (Windows; U; Win98; de-AT; rv:0.9.8) Gecko/20020204
No crash on a current linux CVS. The window appears - and vanishes all on its
own- before i can see the content.
Comment 4•23 years ago
|
||
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020202
same for me. the window never makes it open. the window is opened by the
following Javascript:
function
openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
newWindow =
window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
newWindow.document.open();
newWindow.document.write('<html><title>'+alt+'</title><body
bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"
onBlur="self.close()">');
newWindow.document.write('<img src='+imageName+' width='+imageWidth+'
height='+imageHeight+' alt='+alt+'>');
newWindow.document.write('</body></html>');
newWindow.document.close();
newWindow.focus();
}
it seems to want to close the window when you switch to another window. the
problem is that the last line (newWindow.focus()) seems to trigger the onBlur
script. I removed it and added a <base href="..."> tag so that it would pull up
the image ok. the image still didn't load, and when I did "View Image" Mozilla
crashed.
Talkback ID TB2557187Y
Comment 5•23 years ago
|
||
I had the "base href" wrong. with the correct one, it loads up ok, and doesn't
crash. Dunno why it would crash though. Viewing the same page (with the wrong
href) in a normal window and doing "View Image" worked (didn't crash).
I can file my crash elsewhere if it is unrelated to this bug.
Reporter | ||
Comment 6•23 years ago
|
||
it's okay on 0.9.8. Resolved/Fixed?
Comment 7•23 years ago
|
||
nope. I was using 0.9.8+. The crash itself is probably fixed, but the
self-closing behavior remains. The self-closing behavior could be specific to
window manager... I'm running Blackbox. The new window instantly self-closes
with "Focus New Windows" on AND off.
Comment 8•23 years ago
|
||
I dont see a crash with 0.9.8 release (2002020415/linux).
The window self closes because of the onBlur script. This
works differently on my system than with NS4.x but I dont know
what the correct behavior is. It could be that it also has
to do with the focus behaviour "followmouse".
Comment 9•23 years ago
|
||
Can anybody tell if the onBlur handling is correct or not? Is this a
bug or evangelism issue?
I am seeing a similar behavior with http://www.vudumedia.com/butano/ganadores.htm
(same javascript code, obviously this is from a template and used
by several web designers). Both pages work fine with NS4.x under linux.
Comment 10•23 years ago
|
||
I am actually getting slightly different behavior on the new url (vudumedia). If
I tell my window manager to focus new windows, the behavior is the same as at
the parker URL. If I tell my window manager *not* to focus new windows, the
windows at the new URL open ok, but close when I focus on them. This is more
consistent with what Artiom originally saw with the parker url.
I think the Javascript itself is ok. Mozilla is probably seeing focus as blur.
Someone can remove the crash keyword and lower the severity here.
How about "event handling" component?
Comment 11•23 years ago
|
||
I think the onBlur problem is a DUP of
http://bugzilla.mozilla.org/show_bug.cgi?id=120209
Comment 12•23 years ago
|
||
Yes. This is WFM (crash) or DUP (blur instaed of focus)
Comment 13•23 years ago
|
||
marking this worksforme.
the focus issues are now in bug 131651
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•