Closed Bug 374090 Opened 17 years ago Closed 17 years ago

Crash [@ nsGfxScrollFrameInner::GetScrollPortSize] with noframes and setting binding on root element

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: smaug)

References

Details

(Keywords: crash, regression, testcase)

Crash Data

Attachments

(2 files, 1 obsolete file)

Attached file testcase
See testcase, which crashes current trunk builds on load.

Talkback ID: TB30264927H
0x46000000
nsGfxScrollFrameInner::GetScrollPortSize  [mozilla/layout/generic/nsgfxscrollframe.h, line 172]
nsGfxScrollFrameInner::FireScrollPortEvent  [mozilla/layout/generic/nsgfxscrollframe.cpp, line 1524]
nsGfxScrollFrameInner::AsyncScrollPortEvent::Run  [mozilla/layout/generic/nsgfxscrollframe.cpp, line 1895]
NS_ProcessNextEvent_P  [mozilla/xpcom/build/nsthreadutils.cpp, line 225]
nsBaseAppShell::Run  [mozilla/widget/src/xpwidgets/nsbaseappshell.cpp, line 153]

This regressed between 2007-03-04 and 2007-03-05, probably a regression from bug 363253.
Flags: blocking1.9?
Attached patch using weakFrame (obsolete) — Splinter Review
Flushing kills the (outer) frame :(

(We should start thinking whether it is possible to remove some of the
 uses of WeakFrame)
Assignee: nobody → Olli.Pettay
Status: NEW → ASSIGNED
Attachment #261272 - Flags: superreview?(roc)
Attachment #261272 - Flags: review?(roc)
Btw, for some reason I see the crash only on non-debug-builds
Why don't you just move the flush to AsyncScrollPortEvent.Run before you check mInner again?
That sounds better yes. Will make a new patch.
Except that I'd need to call mAsyncScrollPortEvent.Forget() before flushing, I think, and after that accessing mInner may not be safe.
(In reply to comment #5)
> Except that I'd need to call mAsyncScrollPortEvent.Forget() before flushing, I
> think

why?
Attachment #261272 - Attachment is obsolete: true
Attachment #261372 - Flags: superreview?(roc)
Attachment #261372 - Flags: review?(roc)
Attachment #261272 - Flags: superreview?(roc)
Attachment #261272 - Flags: review?(roc)
Attachment #261372 - Flags: superreview?(roc)
Attachment #261372 - Flags: superreview+
Attachment #261372 - Flags: review?(roc)
Attachment #261372 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: blocking1.9?
Resolution: --- → FIXED
Flags: in-testsuite?
Crash Signature: [@ nsGfxScrollFrameInner::GetScrollPortSize]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: