Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041800Openbravo ERPA. Platformpublic2019-09-12 12:032020-01-09 21:17
salvador_campanella 
caristu 
normalmajoralways
closedfixed 
5
 
 
alostale
Google Chrome
Core
No
0041800: Since the last update of Chrome 77.0.3865.75 the direct print function is not working
Since the last update of Chrome 77.0.3865.75 the direct print function is not working

As could you see in the following link
https://chromereleases.googleblog.com/2019/09/stable-channel-update-for-desktop.html [^]

Some users are commenting that the direct print function doesn't work with this version.

"
Win10_User said...
I'm on Win 10 and use Chrome browser. Now when trying to print Google calendar, when I select print after the print preview screen appears, print dialog box no longer appears. I've confirmed this same issue on several other colleagues' computers after the update. The print function works fine on Firefox. Thanks
1:46 PM, September 11, 2019

Sapphire said...
In windows, ctrl + p, preview is always loading, print is not working T T

7:02 PM, September 11, 2019
"


- Update Chrome to the last version 77.0.3865.75
- As system Administrator
- Set the preference of the property Direct Print to Y
- As a common role
- Go to the Purchase order or another window
- Select a Record and click on the print button of the toolbar
- Click on the popup the button "no, just print it"

As result the popup to select the printer not appears
No tags attached.
related to defect 0031397 closed platform Direct Print is not working on MS Edge 
Issue History
2019-09-12 12:03salvador_campanellaNew Issue
2019-09-12 12:03salvador_campanellaAssigned To => platform
2019-09-12 12:03salvador_campanellaWeb browser => Google Chrome
2019-09-12 12:03salvador_campanellaModules => Core
2019-09-12 12:03salvador_campanellaResolution time => 1570053600
2019-09-12 12:03salvador_campanellaTriggers an Emergency Pack => No
2019-09-13 08:44rafarodaIssue Monitored: rafaroda
2019-09-19 12:56caristuReview Assigned To => caristu
2019-09-19 12:56caristuNote Added: 0114666
2019-09-19 12:56caristuStatusnew => closed
2019-10-04 12:45hgbotCheckin
2019-10-04 12:45hgbotNote Added: 0114920
2019-10-04 12:45hgbotStatusclosed => resolved
2019-10-04 12:45hgbotResolutionopen => fixed
2019-10-04 12:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d3341b1865405f118f59a170c634a41b5a373475 [^]
2019-10-04 13:43alostaleAssigned Toplatform => caristu
2019-10-04 13:43alostaleReview Assigned Tocaristu => alostale
2019-10-04 13:43alostaleNote Added: 0114927
2019-10-04 13:43alostaleStatusresolved => closed
2019-10-04 13:57caristuNote Edited: 0114666bug_revision_view_page.php?bugnote_id=0114666#r19427
2019-10-17 12:38caristuRelationship addedrelated to 0031397
2019-12-12 23:01hudsonbotCheckin
2019-12-12 23:01hudsonbotNote Added: 0116236
2020-01-09 21:17eugeniIssue Monitored: eugeni

Notes
(0114666)
caristu   
2019-09-19 12:56   
(edited on: 2019-10-04 13:57)
Reported to Chrome[1] but we have not received any response. After researching it, it seems that that the print() embedded JS feature has been removed by chrome[2],[3], starting from version 77.


[1] https://bugs.chromium.org/p/monorail/issues/detail?id=6347 [^]
[2] https://pdfium.googlesource.com/pdfium.git/+/2021804f1b414c97667c03d7ab19daf66f6a19ef [^]
[3] https://stackoverflow.com/questions/57895126/chrome-77-not-auto-printing-pdfs [^]

(0114920)
hgbot   
2019-10-04 12:45   
Repository: erp/devel/pi
Changeset: d3341b1865405f118f59a170c634a41b5a373475
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Oct 02 18:02:37 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d3341b1865405f118f59a170c634a41b5a373475 [^]

fixes issue 41800: direct print not working in Chrome 77+

  Chrome removed support for PDFs to inject JavaScript to print
  directly.

  Refactored to display PDF in a hidden form and print it using
  JavaScript, assumes broswser is configured to display PDFs inline.

---
M src/org/openbravo/erpCommon/utility/DownloadReport.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
A src/org/openbravo/base/secureApp/DirectPrint.html
A src/org/openbravo/base/secureApp/DirectPrint.xml
---
(0114927)
alostale   
2019-10-04 13:43   
reviewed + tested
(0116236)
hudsonbot   
2019-12-12 23:01   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/954d2b7a66fb [^]
Maturity status: Test