Closed
Bug 270079
Opened 20 years ago
Closed 20 years ago
Mozilla can not print the URL in the header and footer.
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: leon.sha, Assigned: leon.sha)
References
Details
Attachments
(2 files, 1 obsolete file)
1.39 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
1.41 KB,
patch
|
Details | Diff | Splinter Review |
Normally you can print the URL in the header. But after you print an email, you can never print the URL in the header and footer.
Comment on attachment 166418 [details] [diff] [review] Patch >- if (!mGlobalPrintSettings) { >- CreatePrintSettings(getter_AddRefs(mGlobalPrintSettings)); >- NS_ASSERTION(mGlobalPrintSettings, "Can't be NULL!"); >- } >+ CreatePrintSettings(getter_AddRefs(mGlobalPrintSettings)); >+ NS_ASSERTION(mGlobalPrintSettings, "Can't be NULL!"); Change this will not change the performance, since this function will only be invoked two times, when browser start printing/preview and when mailnews start priting/preview.
Attachment #166418 -
Flags: review?(darin)
Comment 3•20 years ago
|
||
Leon, I think you should find someone with more experience in the printing code to review this. I can provide superreview after you have a review from a module owner or peer. http://www.mozilla.org/owners.html might help you find an appropriate review; however, in my experience it is a bit out-of-date. You could also try asking on #developers at irc.mozilla.org
Attachment #166418 -
Flags: review?(darin) → review?(roland.mainz)
Attachment #166418 -
Flags: review?(roland.mainz) → review?(blizzard)
Comment 4•20 years ago
|
||
Note that the assertion is false in out-of-memory cases. Then the global print settings _will_ in fact be null....
(In reply to comment #4) > Note that the assertion is false in out-of-memory cases. Then the global print > settings _will_ in fact be null.... So what is you suggestion?
Attachment #166418 -
Attachment is obsolete: true
Attachment #166418 -
Flags: review?(blizzard)
Attachment #168382 -
Flags: review?(blizzard)
Comment 7•20 years ago
|
||
*** Bug 242225 has been marked as a duplicate of this bug. ***
Attachment #168382 -
Flags: review?(blizzard) → review?(roc)
Comment on attachment 168382 [details] [diff] [review] Patch with bz's comments + NS_ASSERTION(mGlobalPrintSettings, "Can't be NULL!"); I think this should be NS_ASSERTION(NS_FAILED(rv) || mGlobalPrintSettings, so we don't get the assertion if out of memory r+sr=roc with that
Attachment #168382 -
Flags: superreview+
Attachment #168382 -
Flags: review?(roc)
Attachment #168382 -
Flags: review+
Comment 10•20 years ago
|
||
Checking in gfx/src/nsPrintOptionsImpl.cpp; /cvsroot/mozilla/gfx/src/nsPrintOptionsImpl.cpp,v <-- nsPrintOptionsImpl.cpp new revision: 1.71; previous revision: 1.70 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 11•19 years ago
|
||
This may cause bug 275387.
You need to log in
before you can comment on or make changes to this bug.
Description
•