-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate PDF report button doesn't work in Firefox #6900
Comments
ResearchThe error is caused by a problem getting the screenshots of the visualizations. Editing the source code to display the error on console: A recent pull request https://github.com/wazuh/wazuh-dashboard-plugins/pull/6558/files#diff-09c83b245d7d7757479c6f6bce9a14e1e15823a12d4e827885ed2b584d69f06dR480-R482 for 4.9.0 added a fix for the I tried to remove the fix, and this avoids the error reported on the issue, but the logic to get the visualization screenshots seems to enter into a loop and the report can not be generated. This behavior happens on Firefox and Google Chrome. |
I tried to replace the embedded yarn add dom-to-image-more
It installed the But it seems on Firefox, some images are cropped. Related issue: 1904labs/dom-to-image-more#160 |
SolutionI added a embedded I applied a fix to solve the problem related to cropped images on Firefox. @yenienserrano and me were reviewing the generation of reports on Safari and Firefox too. I created the following pull request with the proposed solution: #6902 |
Changes
|
Description
When using a Firefox browser the create PDF report doesn't work, and throws an error.
Preconditions
Steps to reproduce
Screenshots
The text was updated successfully, but these errors were encountered: