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)
Firefox
PDF Viewer
Tracking
()
RESOLVED
FIXED
Firefox 76
People
(Reporter: support, Unassigned)
References
Details
(Whiteboard: [pdfjs-c-ux])
Attachments
(1 file)
12.13 KB,
application/pdf
|
Details |
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.
Comment 1•10 years ago
|
||
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
Comment 2•10 years ago
|
||
(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
Comment 4•10 years ago
|
||
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.
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•10 years ago
|
Priority: -- → P3
Whiteboard: [pdfjs-c-ux]
Updated•4 years ago
|
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.
Description
•