Closed Bug 899196 Opened 12 years ago Closed 4 years ago

PDFs print on open if the text "print()" appears anywhere in document javascript

Categories

(Firefox :: PDF Viewer, defect, P3)

23 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 876283

People

(Reporter: joel.miller, Unassigned)

Details

(Whiteboard: [pdfjs-c-integration][pdfjs-d-printing])

Attachments

(1 file)

5.90 KB, application/octet-stream
Details
Attached file fireFoxPDFTest.zip
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0 (Beta/Release) Build ID: 20130722172257 Steps to reproduce: This bug is with the PDF Viewer component Include any of the attached PDF documents as the data attribute of an <object> tag (sample HTML included). Each one of the PDF documents in question contains the text "print();" in its document-level javascripts, even though it is never in a position where it should execute without another function being called. In one case, it's even commented out. Actual results: A print dialog box is immediately opened as soon as the document is loaded Expected results: Nothing. At least not on load. In the case where "print();" is commented out, it should never open a print dialog box. In the case where it's not, it should only open a print dialog when its function is called. I don't know what the plans are for including PDF Javascripts in pdf.js, and this bug is not to say that it should work exactly as with Acrobat Reader, but it should in neither case open a print dialog when the document is loaded.
Component: Untriaged → PDF Viewer
The test doc opens up a print dialog box for me on a Mac, so I'm changing this to All platforms.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Hardware: x86_64 → All
Priority: -- → P2
Whiteboard: [pdfjs-c-integration][pdfjs-d-printing]
Moving to p3 because no activity for at least 1 year(s). See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: