openzim / nautilus

Turns a collection of documents into a browsable ZIM file
GNU General Public License v3.0
21 stars 14 forks source link

Nautilus-based PDF files blocked by Google chrome macOS #96

Open Popolechien opened 1 month ago

Popolechien commented 1 month ago

Whenever I try to open a PDF on a Nautilus zim-file (for example this one) I get an error message This page has been blocked by Chrome ERR_BLOCKED_BY_CLIENT Image

This behaviour does not happen on Firefox macOS, nor does it happen on Windows Chrome. When trying to open PDFs from zimit-generated files (for instance any of these) I can not reproduce the issue and the PDF opens normally.

Am running Chrome on macOS Sonoma 14.6.1 (23G93).

But is this an Apple issue or a Nautilus issue, or something else? I am not sure.

rgaudin commented 1 month ago

Yeah that 's Chrome specific (and I believe you might have different mac and windows versions of it).

This is triggered by the target="_blank" attribute on the link. This was added for #71 but I think it was for older (not that old) iOS Safari.

@kelson42 could you test both links on your iPad?

kelson42 commented 1 month ago

Everything works fine with Safar for iOS18. Issue seems a Duplicate of https://github.com/kiwix/kiwix-tools/issues/670 ?

rgaudin commented 1 month ago

@kelson42 no it's not, as I mentioned during the call, the issue expresses itself also on /content endpoint, so out of the kiwix-serve iframe.

That said, I can't reproduce #71 anymore as all the devices I have access to are up to date. What's your suggestion?