Closed
Bug 51576
Opened 26 years ago
Closed 26 years ago
Sometimes Mozilla crashes if I resize the Browser (a homepage with frames is open).
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect, P2)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: tobias.weibel, Assigned: pollmann)
References
()
Details
(Keywords: crash, regression, Whiteboard: [nsbeta3+][PDTP2])
Attachments
(2 files)
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (Windows NT 5.0; U)
BuildID: 20000906
Sometimes Mozilla crashes if I resize the Browser (a homepage with frames is
open).
Reproducible: Sometimes
Steps to Reproduce:
1. open the url (or an other homepage with frames)
2.a) resize the window (minimize, maximize, wide, high, ...)
2.b) and/or wait until it crash
Actual Results: the application crashed at:
nsView.cpp: rev: 3.90 line: 654
NS_IMETHODIMP nsView :: SetChildClip(nscoord aLeft, nscoord aTop, nscoord
aRight, nscoord aBottom)
{
NS_PRECONDITION(aLeft <= aRight && aTop <= aBottom, "bad clip values"); //
value of aTop is 0 and value of aBottom is -90 (always when it crashes)
mChildClip.mLeft = aLeft;
mChildClip.mTop = aTop;
mChildClip.mRight = aRight;
mChildClip.mBottom = aBottom;
return NS_OK;
}
p.s: sorry about my bad english
| Reporter | ||
Comment 1•26 years ago
|
||
Comment 2•26 years ago
|
||
Ok, I get a crash on the Mac after loading a few of these web sites.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•26 years ago
|
||
Comment 4•26 years ago
|
||
Need to check on additional platforms for crash.
| Assignee | ||
Updated•26 years ago
|
Keywords: nsbeta3,
regression
| Reporter | ||
Comment 5•26 years ago
|
||
since i fixed the sourcecode with my patch (id=14110), i haven't problems with
these homepages.
| Assignee | ||
Comment 6•26 years ago
|
||
Hmm, none of that code has changed in nearly a year - wonder what caused this
problem?
| Reporter | ||
Comment 7•26 years ago
|
||
if borderwidth isn't declared in the frame-homepage, the line
>>> PRInt32 borderWidth = GetBorderWidth(aPresContext);
returns 90. if you resize the browser to 0 height and mNumRows isn't 0 then the
next line compute -90 for height.
>>> height -= (mNumRows - 1) * borderWidth;
with -90 height the NS_PRECONDITION in nsView.cpp (see above) fails.
but: why crashes the browser only sometimes?
Comment 8•26 years ago
|
||
Marking nsbeta3+. P1.
Added crash keyword
Comment 9•26 years ago
|
||
Added patch keyword. PDT thinks this is a P2 since more pages use tables than
frames, so users would be less likely to encounter the bug. If the bug is really
encountered frequently, we'd reconsider to P1.
| Assignee | ||
Comment 10•26 years ago
|
||
I see asserts but no crashes on NT, though I don't doubt that this causes
crashes on 98.
The fix looks very safe. I didn't see before that the crash occured when
resizing the window to zero height or width, but with that info I can reproduce
asserts! Crashing on resize is pretty nasty. r=pollmann on the patch. I'll
get a super-review sometime tomorrow.
Status: NEW → ASSIGNED
Target Milestone: --- → M18
| Assignee | ||
Comment 11•26 years ago
|
||
Thanks for the bug report and fix Tobias, I checked your patch in unchanged.
To verify:
1) View a frameset page (http://komodo.mozilla.org/buster/test_url_25.html)
2) Resize the browser window to zero height or width
The browser should not crash or cause a bunch of assertions. Thanks!
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Core Graveyard
Updated•8 years ago
|
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•