Bug 672860

Summary: Page ranges ignored when printing
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: firefoxAssignee: Martin Stransky <stransky>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 14CC: gecko-bugs-nobody, mcepl, xeddvok7bd7464n2
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 14:18:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
reproducer
none
cannot reproduce with the upstream binary none

Description Tim Waugh 2011-01-26 15:53:24 UTC
Description of problem:
When trying to print the first and third pages of a web page, all three pages are printed out.

Version-Release number of selected component (if applicable):
firefox-3.6.13-1.fc14.x86_64
gtk2-2.22.0-1.fc14.1.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Visit a web page.
2.File->Page Setup... and choose Landscape
3.Print Preview and see that it would be three pages of output, and decide to print only the first and last.
4.File->Print..., select "Pages:" and enter "1,3" into the entry box.
(In my case I also selected "Short Edge (Flip)" in the One-Sided option in Page Setup.)
5.Click Print.
  
Actual results:
Extra page printed.  Wasted paper, ink, time.

Expected results:
Job printed as directed.

Additional info:
Printing the document to a file and then printing that file from the command line works fine:

lp -dBen -o Duplex=DuplexTumble -P 1,3 file.pdf

showing the the problem is not with CUPS.

Comment 1 Matěj Cepl 2011-01-26 17:10:32 UTC
Created attachment 475446 [details]
reproducer

Yes, can easily reproduce when printing to PDF

Comment 2 Matěj Cepl 2011-01-26 17:26:42 UTC
Created attachment 475450 [details]
cannot reproduce with the upstream binary

Comment 3 xeddvok7bd7464n2 2011-04-27 21:47:19 UTC
I can confirm this bug—I have exactly the same problem under F13 with Firefox 3.6.16-1.fc13.i686, but also with upstream Firefox 4.0 (under F13 too).

How to repoduce:

1. Visit a larger web page that fits on more than two pages when printing the entier page (for example http://distrowatch.com)
2. File → Print
3. Range → Pages, and enter for example “1-2, 5-6” (without quotation marks)
4. Click on “Print”
5. You’ll see that the output is all pages from 1 to 6

(I do not have to choose “landscape” to reproduce this bug as described in comment #1.)

Comment 4 xeddvok7bd7464n2 2011-04-27 21:48:42 UTC
(Sorry, comment #0, not comment #1.)

Comment 5 xeddvok7bd7464n2 2011-04-27 22:01:40 UTC
See also upstream bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=499640

Comment 6 Martin Stransky 2011-11-23 14:38:17 UTC
More likely it's a dupe of https://bugzilla.mozilla.org/show_bug.cgi?id=558742

Comment 7 Martin Stransky 2011-12-06 14:18:48 UTC
Moving upstream.