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)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED

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
Ok, I get a crash on the Mac after loading a few of these web sites.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Need to check on additional platforms for crash.
Keywords: nsbeta3, regression
since i fixed the sourcecode with my patch (id=14110), i haven't problems with these homepages.
Hmm, none of that code has changed in nearly a year - wonder what caused this problem?
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?
Marking nsbeta3+. P1. Added crash keyword
Keywords: crash
Priority: P3 → P1
Whiteboard: [nsbeta3+]
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.
Keywords: patch
Priority: P1 → P2
Whiteboard: [nsbeta3+] → [nsbeta3+][PDTP2]
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
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
Fixed in the Sept 29th build.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
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.

Attachment

General

Creator:
Created:
Updated:
Size: