-
Notifications
You must be signed in to change notification settings - Fork 970
cmd+click on some PDFs no longer opens them in Brave #14844
Comments
I believe this is a duplicate of #14409 |
@bsclifton it could be, but the steps in the description worked in 0.23.31, 0.23.39 and even 0.23.70 just as an FYI. Some background - I was using the steps in the description to be able to load the PDF in the browser because clicking on the link directly forces you to download the PDF (which is not what I wanted, I wanted to view it in Brave). So right now, I can't find any way to get the PDF listed to open in Brave without downloading. (note - this is not an issue in Chrome, clicking on the link in Chrome allows it to open without having to cmd+click on the link) |
"If you watch carefully, you can see that a new tab opens to the right of the manual test run, but quickly closes." < I just repro'ed this on Mac and it's not what happened in #8364. So i think this is a new issue caused somewhere in muon. |
easy way to repro is to go to https://basicattentiontoken.org/ and just click the "view the white paper" button. you don't even need to cmd+click |
If I spam click as fast as I can, I am seeing this get logged:
Agreed that it's likely in Muon- will be investigating |
with the
The |
DownloadItem::GetSavePath() is returning empty string which is causing the download to kick out. Will need to add some debugging to Muon |
@bsclifton the steps in the issue worked as expected in muon 8.0.1 (with b-l build |
Weird... if you turn off Here's the code path it's hitting (which cancels the download): |
It's hitting this condition because the webview is not attached to the webcontents. When it does the lookup (code link above), it fails and exits |
@LaurenWags this behavior likely changed with #13587 After this was introduced, I believe this now duplicates #14409 |
@bsclifton i'm still seeing this issue on latest release. right-click to open PDF in a new tab just shows the tab for an instant and closes it. it doesn't download the PDF or show it. |
closing bc i just saw brave/muon@4504af1 |
@diracdeltas did you test with 0.23.74? It's very possible we need to re-open this issue because now it seems to prompt to save, instead of opening in browser. As you mentioned above, this change (open vs download) may have been caused by #13587 I closed it since it was basically no-oping (which matches the behavior of #14409, which as you noted was fixed by brave/muon@4504af1). But if we'd like this to OPEN the PDF, we can remove the |
Description
In past versions (0.23.31, 0.23.39, and even 0.23.70 which was the previous c68 build), if you cmd+click (or right click + open in new tab option) on the BAT White Paper PDF, it would open in a new tab. In 0.23.72 that no longer happens. Note - if you click on the link/button directly you are prompted to download the white paper, cmd+click allowed you to view the PDF in Brave without downloading.
Steps to Reproduce
Actual result:
PDF no longer opens in Brave: (note - opened tab disappears very quickly and is not captured in the gif below)
Expected result:
PDF should open in Brave as it did in previous versions (I checked 0.23.70, 0.23.39, 0.23.31)
Reproduces how often:
easily
Brave Version
about:brave info:
0.23.72
Reproducible on current live release:
no
Additional Information
Maybe related to #14409?
Also, if you try the STR on the pdf995 link, this issue does not occur, so it's only seems like it happens for some PDFs.
Reproduced by @kjozwiak
The text was updated successfully, but these errors were encountered: