Closed Bug 270079 Opened 21 years ago Closed 21 years ago

Mozilla can not print the URL in the header and footer.

Categories

(Core :: Printing: Output, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: leon.sha, Assigned: leon.sha)

References

Details

Attachments

(2 files, 1 obsolete file)

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.
Attached patch Patch (obsolete) — Splinter Review
Assignee: core.printing → leon.sha
Status: NEW → ASSIGNED
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)
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)
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)
*** 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+
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: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: