Closed
Bug 399013
Opened 17 years ago
Closed 17 years ago
Crash [@ UpdateViewsForTree] with popop stuff onoverflow/onunderflow and changing styles
Categories
(Core :: XUL, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: martijn.martijn, Assigned: enndeakin)
References
Details
(Keywords: crash, regression, testcase)
Crash Data
Attachments
(1 file, 1 obsolete file)
1.07 KB,
application/vnd.mozilla.xul+xml
|
Details |
See testcase, which crashes after reload (happens automatically).
This seems to have regressed somehow between 2007-07-04 and 2007-07-05:
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=2007-07-04+04&maxdate=2007-07-05+09&cvsroot=%2Fcvsroot
I guess somehow a regression from bug 279703.
http://crash-stats.mozilla.com/report/index/6ff31651-75ae-11dc-8e53-001a4bd43ef6
0 UpdateViewsForTree mozilla/layout/base/nsCSSFrameConstructor.cpp:9625
1 DoApplyRenderingChangeToTree mozilla/layout/base/nsCSSFrameConstructor.cpp:9657
2 ApplyRenderingChangeToTree mozilla/layout/base/nsCSSFrameConstructor.cpp:9705
3 nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList&) mozilla/layout/base/nsCSSFrameConstructor.cpp:9918
4 nsCSSFrameConstructor::ProcessOneRestyle(nsIContent*, nsReStyleHint, nsChangeHint) mozilla/layout/base/nsCSSFrameConstructor.cpp:13008
5 nsCSSFrameConstructor::ProcessPendingRestyles() mozilla/layout/base/nsCSSFrameConstructor.cpp:13054
6 PresShell::DoFlushPendingNotifications(mozFlushType, int) mozilla/layout/base/nsPresShell.cpp:4443
7 PresShell::FlushPendingNotifications(mozFlushType) mozilla/layout/base/nsPresShell.cpp:4407
8 nsCSSFrameConstructor::RestyleEvent::Run() mozilla/layout/base/nsCSSFrameConstructor.cpp:13110
9 nsThread::ProcessNextEvent(int, int*) mozilla/xpcom/threads/nsThread.cpp:490
10 NS_ProcessNextEvent_P(nsIThread*, int) nsThreadUtils.cpp:227
11 nsBaseAppShell::Run() mozilla/widget/src/xpwidgets/nsBaseAppShell.cpp:154
12 nsAppStartup::Run() mozilla/toolkit/components/startup/src/nsAppStartup.cpp:170
13 XRE_main mozilla/toolkit/xre/nsAppRunner.cpp:3142
14 main mozilla/browser/app/nsBrowserApp.cpp:153
15 WinMain mozilla/browser/app/nsBrowserApp.cpp:166
16 __tmainCRTStartup crtexe.c:589
Assignee | ||
Comment 1•17 years ago
|
||
A simpler testcase has:
<menulist>
<panel/>
<menupopup id="a"/>
</menulist>
document.getElementById('a').setAttribute('style', 'display: block;');
The menulist initially has the <panel> in its popupList. The menupopup is the first child frame of the menulist.
When the menupopup is changed to use a block frame, the menulist's childlist is emptied, and the new block frame is appended as a sibling of the <panel>'s frame. That is, it is incorrectly placed as a sibling of the <panel> frame rather than as the first child of the menulist.
I think this is caused because nsCSSFrameConstructor::FindPreviousSibling doesn't account for the popup frames being in a different list.
Assignee | ||
Comment 2•17 years ago
|
||
Assignee: nobody → enndeakin
Attachment #284003 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #284628 -
Flags: superreview?(bzbarsky)
Attachment #284628 -
Flags: review?(bzbarsky)
Comment 3•17 years ago
|
||
Does the patch in bug 386642 fix this? Or does the popup logic need to be exactly what it is in this patch?
Assignee | ||
Updated•17 years ago
|
Attachment #284003 -
Attachment is obsolete: false
Assignee | ||
Comment 4•17 years ago
|
||
Comment on attachment 284628 [details] [diff] [review]
skip popups in the popup list
Hmmm. I thought this bug sounded familiar. bz, your patch does indeed fix this bug, so let's ignore the patch here.
Attachment #284628 -
Attachment is obsolete: true
Attachment #284628 -
Flags: superreview?(bzbarsky)
Attachment #284628 -
Flags: review?(bzbarsky)
Comment 5•17 years ago
|
||
FYI, I can't reproduce the crash from the testcase anymore with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007102105 Minefield/3.0a9pre
I cannot reproduce either on Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a9pre) Gecko/2007102105 Minefield/3.0a9pre ID:2007102105
Comment 7•17 years ago
|
||
Fixed by checkin for bug 386642, right?
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Reporter | ||
Comment 8•17 years ago
|
||
Right.
Verified fixed, using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007110805 Minefield/3.0b2pre
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: xptoolkit.menus → xptoolkit.widgets
Updated•14 years ago
|
Crash Signature: [@ UpdateViewsForTree]
Comment 9•12 years ago
|
||
Flags: in-testsuite? → in-testsuite+
Comment 10•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•