Closed Bug 1106298 Opened 10 years ago Closed 4 years ago

pdf.js "Open With Different Viewer" visible if the Open Action is print

Categories

(Firefox :: PDF Viewer, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Firefox 76

People

(Reporter: support, Unassigned)

References

Details

(Whiteboard: [pdfjs-c-ux])

Attachments

(1 file)

Attached file openaction.pdf
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Steps to reproduce: Open a PDF file which open action is Print Actual results: "Open With Different Viewer" warning will be displayed at the top of the page Expected results: No warning because this Open Action have been fixed and supported by Firefox.
I was able to reproduce this issue on Latest Nightly 37.0a1 (2014-12-03), Firefox 32 (20140825202822) and Firefox 34 (20141125180439) using Windows 7 x64 and Mac OSX 10.9.5. I am not sure if this is really a bug. Yuri can you please confirm this bug?
Component: Untriaged → PDF Viewer
Flags: needinfo?(ydelendik)
OS: Windows 7 → All
Hardware: x86_64 → All
Version: 32 Branch → Trunk
(In reply to Vasilica Mihasca, QA [:vasilica_mihasca] from comment #1) > I was able to reproduce this issue on Latest Nightly 37.0a1 (2014-12-03), > Firefox 32 (20140825202822) and Firefox 34 (20141125180439) using Windows 7 > x64 and Mac OSX 10.9.5. > > I am not sure if this is really a bug. > > Yuri can you please confirm this bug? The fallback button is shown due to PDF wanting to execute the embedded JavaScript. This is indented behavior at the moment. The JavaScript in PDF feature is not supported yet (therefore a warning bar) since a) it can be unsafe or b) is not available for all PDF viewers -- we might be looking to support that in the future.
Flags: needinfo?(ydelendik)
This is not using embedded JavaScript. It's a OpenAction: print which is fixed in this bug 1001080: https://bugzilla.mozilla.org/show_bug.cgi?id=1001080
I agree. The current solution is replace OpenAction with JavaScript equivalent and execute it as such. To support printing, we open printing dialog if 'print' is found. This bug is a valid one, but not critical: the print dialog is shown, we just need to properly handle actions without throwing the warning bar.
I hope Bug 1106300 can be fixed, otherwise, this "Open with different viewer" will cause a resize event which is quite annoying to our HTML5 RDP, VNC, SSH, Telnet application. https://bugzilla.mozilla.org/show_bug.cgi?id=1106300 Chrome had similar problem before.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Whiteboard: [pdfjs-c-ux]
Status: NEW → RESOLVED
Closed: 4 years ago
Depends on: 1622069
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: