print.print_header declarations in all.js & prefs.js seem to be ignored

RESOLVED FIXED in mozilla1.2beta

Status

()

Core
Printing: Output
RESOLVED FIXED
16 years ago
16 years ago

People

(Reporter: Michael B. Venezia, Assigned: rods (gone))

Tracking

({pp})

Trunk
mozilla1.2beta
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826

I've been trying to get Mozilla to start with no headers of footers enabled on
startup.  (instead of getting the typical set of headers/footers)

I modified all.js with the following settings:
pref("print.print_headerleft", "");
pref("print.print_headercenter", "");
pref("print.print_headerright", "");
pref("print.print_footerleft", "");
pref("print.print_footercenter", "");
pref("print.print_footerright", "");
as opposed to the originals (just check the default all.js file)  The
declarations seem to be ignored, even though the all.js file implicates that
this is where such changes should be made.

A suggestion on google was to modify prefs.js in the user's mozilla profile
directory.  This resulted in the same problem

Even though the declarations are made, when I hit print or go to "Page setup",
the normal defaults (which are no longer declared) are used.  I tested this with
the 2002090108 windows build and had the same problem.

Reproducible: Always

Steps to Reproduce:
1. modify all.js in the defaults\pref directory so that the
print.print_[header/footer][right/center/left] is set to an empty string
2. start mozilla
3. print a web page, or even just go to file->page setup->Margins & Header/Footer

Actual Results:  
Header Left: Title
Header Center: blank
Header Right: URL
Footer Left: Page # of #
Footer Center: blank 
Footer Right: Date / Time

Expected Results:  
Header Left: blank
Header Center: blank
Header Right: blank
Footer Left: blank
Footer Center: blank
Footer Right: blank
(Reporter)

Comment 1

16 years ago
Just another note...

Changing the settings in Linux (Mozilla 2002083005) gives the expected results.
 Therefore I feel it is a bug and it is unique to Windows (or atleast exclusive
of Linux)
To printing
Assignee: bnesse → rods
Component: Preferences: Backend → Printing
Keywords: pp
QA Contact: rvelasco → sujay
(Assignee)

Comment 3

16 years ago
->
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → mozilla1.1alpha
(Assignee)

Comment 4

16 years ago
Created attachment 97602 [details] [diff] [review]
patc v1

Initial from prefs a "base" set of options typically needed by Windows
(Assignee)

Updated

16 years ago
Status: NEW → ASSIGNED
Target Milestone: mozilla1.1alpha → mozilla1.2alpha
(Assignee)

Updated

16 years ago
Target Milestone: mozilla1.2alpha → mozilla1.2beta

Comment 5

16 years ago
Comment on attachment 97602 [details] [diff] [review]
patc v1

r=dcone
Attachment #97602 - Flags: review+

Comment 6

16 years ago
Comment on attachment 97602 [details] [diff] [review]
patc v1

sr=kin@netscape.com
Attachment #97602 - Flags: superreview+
(Assignee)

Comment 7

16 years ago
fixed
(Assignee)

Comment 8

16 years ago
really fixed
Status: ASSIGNED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.