Rob--W / open-in-browser

A browser extension that offers the ability to open files directly in the browser instead of downloading them.
Other
83 stars 15 forks source link

file downloaded rather than opened #75

Open setharnold opened 2 years ago

setharnold commented 2 years ago

Hello, a recent Firefox changed download behaviour to just blindly downloading files to a Downloads/ directory without asking the user about it.

Open In Browser still helps but I think this Firefox change may have changed how Open In Browser works.

I'm on Firefox 98.0.2 (as reported by Help|About Firefox) -- Ubuntu Focal package version 98.0.2+build1-0ubuntu0.20.04.1.

Clicking https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch from https://www.openwall.com/lists/oss-security/2022/04/07/8 brings up the usual Open In Browser dialog box, and selecting Open in browser as MIME from file extension downloads the file rather than opening it in the browser.

Selecting Open in browser as text shows the patch in the tab contents as I expected.

I have to admit that I didn't try this specific URL before this newer version of Firefox; but I seem to remember needing to change the MIME type only rarely in the past.

Thanks

Rob--W commented 2 years ago

This is new behavior in Firefox, which can (temporarily?) be disabled by visiting about:config and setting browser.download.improvements_to_download_panel to false.

setharnold commented 2 years ago

Oh, nice, thanks for the tip. :)