Skip to content
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

Fix failure to handle PDFs in openzim archive types #1179

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

Jaifroid
Copy link
Member

@Jaifroid Jaifroid commented Dec 4, 2023

Fixes #1178 . This regression was due to the new Zimit code's passthrough mechanism for reactivating a clicked link. I forgot to turn the passthrough off, so it remained set even when a non-Zimit archive was loaded. Hence, PDFs were not handled properly in such archives if a Zimit archive had been opened in the same session.

The issue is that we must work around the fact that in Chromium browsers PDFs are (rightly IMHO) not trusted to be displayed in a sandbox, as they may have active content. So, in all browsers we open all PDFs in a new tab or window.

@Jaifroid Jaifroid added bug regression Broken things that used to work security user interface labels Dec 4, 2023
@Jaifroid Jaifroid added this to the v4.0 milestone Dec 4, 2023
@Jaifroid Jaifroid self-assigned this Dec 4, 2023
@Jaifroid Jaifroid merged commit d6b807f into main Dec 5, 2023
9 checks passed
@Jaifroid Jaifroid deleted the Fix-failure-to-handle-PDFs-in-openzim-archive-types branch December 5, 2023 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug regression Broken things that used to work security user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDFs in Nautilus-based ZIMs are not opening outside the sandbox
1 participant