Closed
Bug 1276518
Opened 8 years ago
Closed 8 years ago
PRemotePrintJob argument for ShowProgress should be nullable
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: bobowen, Assigned: bobowen)
References
Details
(Whiteboard: sbwc1)
Attachments
(1 file)
If you turn off printing via the parent ShowProgress crashes because PRemotePrintJob can be null.
I noticed this crash before landing bug 1189846, but clearly I lost the change somewhere.
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/56112/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/56112/
Attachment #8757713 -
Flags: review?(jmathies)
Updated•8 years ago
|
Attachment #8757713 -
Flags: review?(jmathies) → review+
Comment 2•8 years ago
|
||
Comment on attachment 8757713 [details]
MozReview Request: Bug 1276518: Make PRemotePrintJob argument for ShowProgress nullable.
https://reviewboard.mozilla.org/r/56112/#review53118
Comment 3•8 years ago
|
||
How does adding 'nullable' prevent the crash?
Assignee | ||
Comment 4•8 years ago
|
||
(In reply to Jim Mathies [:jimm] from comment #3)
> How does adding 'nullable' prevent the crash?
Because otherwise we call FatalError in the IPDL generated code, if we pass null.
This dxr link may not be permanent, but making it nullable passes true here:
https://dxr.mozilla.org/mozilla-central/source/obj-x86_64-pc-linux-gnu/ipc/ipdl/PPrintingChild.cpp#115
This calls:
https://dxr.mozilla.org/mozilla-central/source/obj-x86_64-pc-linux-gnu/ipc/ipdl/PPrintingChild.cpp#1323
Pushed by bobowencode@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/389345ac8f73
Make PRemotePrintJob argument for ShowProgress nullable. r=jimm
Comment 6•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•