Closed
Bug 382471
Opened 17 years ago
Closed 17 years ago
Crash [@ nsView::CalcWidgetBounds] when trying to print any select
Categories
(Core :: Printing: Output, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: martijn.martijn, Assigned: sharparrow1)
References
Details
(4 keywords)
Crash Data
Attachments
(3 files)
213 bytes,
text/html
|
Details | |
1.12 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
24.73 KB,
image/png
|
Details |
See testcase, when trying to print this testcase, current trunk Mozilla builds crash.
Talkback ID: TB32666573M
nsView::CalcWidgetBounds [mozilla/view/src/nsview.cpp, line 361]
nsIView::CreateWidget [mozilla/view/src/nsview.cpp, line 626]
nsCSSFrameConstructor::InitializeSelectFrame [mozilla/layout/base/nscssframeconstructor.cpp, line 5054]
nsCSSFrameConstructor::ConstructSelectFrame [mozilla/layout/base/nscssframeconstructor.cpp, line 4944]
nsCSSFrameConstructor::ConstructHTMLFrame [mozilla/layout/base/nscssframeconstructor.cpp, line 5336]
nsCSSFrameConstructor::ConstructFrameInternal [mozilla/layout/base/nscssframeconstructor.cpp, line 7559]
nsCSSFrameConstructor::ConstructFrame [mozilla/layout/base/nscssframeconstructor.cpp, line 7429]
nsCSSFrameConstructor::ProcessChildren [mozilla/layout/base/nscssframeconstructor.cpp, line 11269]
According to bug 381746, comment 14, this is a regression from bug 381746.
Assignee | ||
Comment 1•17 years ago
|
||
Ugh, me being unbelievably stupid; I'll have a patch later.
Assignee: nobody → sharparrow1
Comment 2•17 years ago
|
||
It would be nice to get this fixed before 1.9 Alpha 5
The tree will close in a few hours
Flags: blocking1.9?
Assignee | ||
Comment 3•17 years ago
|
||
I don't have the time today to test/check this in, but if someone is willing, that would be nice.
Attachment #266669 -
Flags: review?(roc)
Comment 4•17 years ago
|
||
(In reply to comment #3)
> Created an attachment (id=266669) [details]
> Patch
>
> I don't have the time today to test/check this in, but if someone is willing,
> that would be nice.
>
Tried it on a mac, compile failed with:
/Developer/moz/mozilla/view/src/nsView.cpp
/Developer/moz/mozilla/view/src/nsView.cpp: In member function 'nsRect nsView::CalcWidgetBounds(nsWindowType)':
/Developer/moz/mozilla/view/src/nsView.cpp:359: error: 'Type' was not declared in this scope
make[5]: *** [nsView.o] Error 1
make[4]: *** [libs] Error 2
make[3]: *** [libs_tier_gecko] Error 2
make[2]: *** [tier_gecko] Error 2
make[1]: *** [default] Error 2
make: *** [build] Error 2
Adding
nsWindowType Type;
allowed it to compile and I didn't crash on the testcase. Hope that helps.
Comment 5•17 years ago
|
||
The patch along with the change I mentioned in my previous comment apparently cause the autocomplete to render in the incorrect location on a mac.
Assignee | ||
Comment 6•17 years ago
|
||
> Adding
>
> nsWindowType Type;
>
> allowed it to compile and I didn't crash on the testcase. Hope that helps.
That correction is wrong... "Type" should be "aType"; I just accidentally zapped the "a".
Comment 7•17 years ago
|
||
(In reply to comment #6)
> That correction is wrong... "Type" should be "aType"; I just accidentally
> zapped the "a".
>
yeah, I realized that later. Making that change it works great.
Comment 8•17 years ago
|
||
Confirmed with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a5pre) Gecko/20070531 Minefield/3.0a5pre (printing to PostScript).
OS → All
Will get the tb id if needed.
OS: Windows XP → All
Attachment #266669 -
Flags: superreview+
Attachment #266669 -
Flags: review?(roc)
Attachment #266669 -
Flags: review+
checked in
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite?
Updated•17 years ago
|
Status: RESOLVED → VERIFIED
Updated•13 years ago
|
Crash Signature: [@ nsView::CalcWidgetBounds]
You need to log in
before you can comment on or make changes to this bug.
Description
•