Vanadium icon indicating copy to clipboard operation
Vanadium copied to clipboard

Open PDF on download toggle not working

Open perkyquirky opened this issue 1 year ago • 7 comments

The Automatically open PDF toggle opens a downloaded PDF automatically regardless of the toggle state.

perkyquirky avatar Jan 15 '25 05:01 perkyquirky

This is the upstream behavior when an app handles the file type and is marked as android.intent.category.BROWSABLE. We can look into how other PDF Viewers including Google's one handle it. Maybe we should remove android.intent.category.BROWSABLE.

thestinger avatar Jan 15 '25 06:01 thestinger

I remember it were patched somewhere in May (not really sure but i remember Vanadium didn't automatically open any downloaded PDFs with that toogle off during that period) but it seems like it back now.

cotienbang avatar Aug 26 '26 11:08 cotienbang

No, i mean like the issue was fixed then back for some reason.

cotienbang avatar Aug 26 '26 13:08 cotienbang

It appears to be working fine right now, are you still having an issue?

thestinger avatar Aug 26 '26 13:08 thestinger

It appears to be working fine right now, are you still having an issue?

Yeah it still automatically open downloaded PDFs even with the setting being off for me. On an 8a and latest Vanadium Alpha if that help.

cotienbang avatar Aug 26 '26 14:08 cotienbang

Strange, that's not happening here anymore.

thestinger avatar Aug 26 '26 14:08 thestinger

Preconditions:

  • Vanadium is fresh/storage cleared
  • The default for automatically opening PDFs is disabled

Reproduction Steps:

  • Search for a test PDF online
  • Download a variety of PDFs, both from direct links and from websites presenting their own links

Actual Result:

If you download a PDF that is obtained directly from a link (meaning a link that only initiates a download and not a proper website), The PDF will open automatically regardless of what "Automatically open PDFs" is set to.

If you download a PDF that is obtained from a website, a notice will appear saying that a file is downloading/downloaded. The PDF will not automatically open regardless of what "Automatically open PDFs" is set to.

Interestingly, if you take a direct link and open it in a new tab, the notice that a file is downloading/downloaded will appear and the PDF will not automatically open.

The key difference seems to be if the download is initiated in a different tab/from the website the download is coming from. Many direct links dont open a new tab, but still fetch data from a different website.

Expected Result:

PDFs respect the "Automatically open PDFs" regardless of where the download was initiated.

HybridStaticAnimate avatar Nov 19 '26 00:11 HybridStaticAnimate