If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Status

MozillaClassic
HTMLtoText/PostScript Trans
P1
major
VERIFIED WONTFIX
19 years ago
11 years ago

People

(Reporter: rw263, Assigned: vidur (gone))

Tracking

Details

(Reporter)

Description

19 years ago
If cache is turned on, the document.write() doesn't print. This works great on
the screen, but doesn't work on the printer :(

<script language=JavaScript><!-- // hide script
 // this should be set to a VALID image string.
 var imageString = '<img src="http://www.here.com/there.gif">';
 var imageHeight = 472;  //the height of the image

 function changeLayer() {
   var height=document.height, i, numImages;
   numImages = Math.ceil(height/imageHeight);  //get one m
   for (i=0; i<numImages; i++)
     document.watermark.document.write(imageString + "\n");
 }
// finish hiding script --></script>

the HTML has: <body onLoad="changeLayer()">
and it also has: <layer id=watermark>

This works GREAT on the screen, however when you print this (with cache
turned on). Of course when cache is set to 0kb, no error occurs however the the
write() isn't carried out either.

Updated

19 years ago
Assignee: mccabe → brendan
Component: JavaScript → HTML to Text/PostScript Translation

Comment 1

19 years ago
Thanks for the excellent bug report.

I'm going to pass it on to the libMocha component.  I can't promise it'll be
fixed, because it looks like it's on the mozilla 'classic' codebase - current
development efforts are being focused on the nglayout/xpfe codebase.

Brendan - you're listed as non-owner of this module.  Any suggestions?

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → REMIND

Comment 2

19 years ago
This bug is against the old layout engine, really.  It's unlikely to recur in
the brave new world.  I'm marking it REMIND and reassigning it to vidur, who may
just want to close it.

/be

Updated

19 years ago
Status: RESOLVED → REOPENED

Updated

19 years ago
Assignee: brendan → vidur
Status: REOPENED → NEW

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago19 years ago
REMIND is deprecated per bug 35839.
Status: RESOLVED → REOPENED
Resolution: REMIND → ---
.
Status: REOPENED → RESOLVED
Last Resolved: 19 years ago16 years ago
Resolution: --- → WONTFIX

Comment 5

15 years ago
VERIFIED, MozillaClassic is dead.
Status: RESOLVED → VERIFIED

Updated

11 years ago
URL: n/a
You need to log in before you can comment on or make changes to this bug.