wrong display when mixing javascript and print preview

RESOLVED INCOMPLETE

Status

()

Core
Print Preview
RESOLVED INCOMPLETE
11 years ago
8 years ago

People

(Reporter: perillonpe, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [closeme 2010-06-15], URL)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy)

after the firefox print preview of a javascript modified page, there is a trouble with display on the page. trust me, its is not a broken web page.

so it is hard to explain, sorry for the poor language.

the pages contents several div of "article" class in the main part, and i provided a script witch allow to hidde the "article" i don't want to print.

But if you do a print preview, then close it, the page presents now a display default, on a part of the document the script doesn't modify. this is what i call "javascript way" in Steps to Reproduce part.

If you disable the javascript engine, the script will not run, you will get a new  page from the server (witch look same ...)   and you will be not able to reproduce the same bug. this is "php way"


Reproducible: Always

Steps to Reproduce:
first, the php way, witch presents the expected result


a.1. disable javascrit 

a.2. go to http://tutorat.univ-lyon1.fr/planning.php?print=S2007-05-14#S2007-05-14 or
a.2.bis 
* go to http://tutorat.univ-lyon1.fr/planning.php and click on a link "affichage simplifié (impression)" 
* the page reload from server (not if you did not disable javascript)
* the url changes with ugly get var

a.3. note the place of the words "biologie chimie informatique mathematiques physique". they are in the bottom of the page, in the dotted box, not those in a table.

a.4. in fx menu, select file>print preview, let fx work

a.5. close the preview when page is ready

a.6. note the place of the words "biologie chimie informatique mathematiques physique". they did not move.

-----------------------------------
now the javascript way

b.1. enable javascript for http://tutorat.univ-lyon1.fr

b.2. go to http://tutorat.univ-lyon1.fr/planning.php

b.3. click (please) on a link with the text "affichage simplifié (impression)"

b.4. you just activate the script 

b.5. the script produce a page witch look similar to point a.3

b.6. note the position of the words "biologie chimie informatique mathematiques physique". they always are in the bottom of the page, in the dotted box, not in the table.

b.7. in fx menu, select>print preview, let fx work

b.8. close the preview when page is ready

b.9. the words "biologie chimie informatique mathematiques physique" (cf b.6 ) have moved.

Actual Results:  
some node of the document moved with "javascript way" but not in "php way".

i am able to reproduce the bug on linux, win2000 and windows XP.

That's why i deny my responsibility in this problem. i provided same css in all cases, and the script do not modify this node. i don't make a script run when generating the preview or after.

Expected Results:  
javascript way give similar look to php way

i'm currently the webmaster of http://tutorat.univ-lyon1.fr

i probably will remove the information on the page after the end of June or July and you will be unable to check the scenario.
Component: General → Print Preview
Product: Firefox → Core
QA Contact: general → printing
Can you reproduce this using an official mozilla.com Firefox 2.0.0.4 build? What about with a current trunk build?

http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

Comment 2

8 years ago
Does this work in version 3.6? 
If it does work, please close the bug and set resolution to WORKSFORME.
If it does not work, please update the bug.

(generally speaking, printing is greatly improved in v3.5 and v3.6)
Whiteboard: [closeme 2010-06-15]

Comment 3

8 years ago
Closing, need response confirming that this is still an issue from reporter to reopen.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.