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

Regression: FF3.0b4pre calls twice to NPP_Print() when printing plugin




Printing: Output
10 years ago
6 years ago


(Reporter: danielle.pham, Unassigned)


Firefox Tracking Flags

(Not tracked)


(Whiteboard: [closeme 2011-03-15])



10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2008011704 Minefield/3.0b3pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4pre) Gecko/2008022005 Minefield/3.0b4pre 

Regression: With latest FF3.0b4pre, FF calls twice to NPP_Print() when printing plugin.

This is not a problem with 3.0b3pre (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2008011704 Minefield/3.0b3pre).

Reproducible: Always

Steps to Reproduce:
1. Load any applet from http://java.sun.com/products/plugin/1.5.0/demos/plugin/applets.html (It's okay to use OJI plugin to reproduce problem).
2. Print the page while stepping into the code where NPP_Print() is called.
Actual Results:  
NPP_Print() gets called twice for each print request.

Expected Results:  
NPP_Print() should only being called once by browser for each print request
Is this an actual problem?  NP_Print will get called twice so that alpha can be recovered and proper compositing done if necessary.  I can make things always call NP_Print only once, but all plugin content will then have an opaque white background.
I don't see why this would be a problem.

Comment 3

10 years ago
Calling twice to NPP_Print() causes Plugin to respond twice to a single print request -- a performance degrade during printing especially considering large plugin contents that spread a few pages.

On Windows, Java Plugin responds to NPP_Print() in an off-screen rendering technique for high resolution. That is, by creating a DIB section and rendering it into an enh meta DC before the last step -- copying and stretching it to the provided DC.  

If quality of the print composition still requires copying DIB section twice to the real printer DC, then perhaps this twice copying should be done at Plugin's printing last step, instead of by browser calling in twice to plugin.
That can save plugin from preparing the DIB twice.

Also, this is a recent change only as I understand, so how was print composition's quality before?

This is a performance vs. quality of printing problem.
While it's good to come to an agreement, it's not as critical as getting plugin printing to work in general with FF3.

So if you could, please concentrate on bug https://bugzilla.mozilla.org/show_bug.cgi?id=418915 first. Thanks.  
I don't think we really care about print performance at all.
do you see this issue still with version 3.6 or 4.0 beta?
Whiteboard: [closeme 2011-03-15]
No response to needed information. -> incomplete report
Last Resolved: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.