webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
742 stars 65 forks source link

eu.dl.twrp.me - Incorrect download file type #106064

Open webcompat-bot opened 2 years ago

webcompat-bot commented 2 years ago

URL: https://eu.dl.twrp.me/oneplus3/twrp-3.6.2_9-0-oneplus3.img.html

Browser / Version: Firefox Mobile 102.0 Operating System: Android 11 Tested Another Browser: Yes Other

Problem type: Something else Description: Can't download the img file Steps to Reproduce: Firefox downloads a txt file instead of an img file. No problem with Vivaldi browser.

View the screenshot Screenshot
Browser Configuration
  • gfx.webrender.all: false
  • gfx.webrender.blob-images: true
  • gfx.webrender.enabled: false
  • image.mem.shared: true
  • buildID: 20220614185842
  • channel: beta
  • hasTouchScreen: true
  • mixed active content blocked: false
  • mixed passive content blocked: false
  • tracking content blocked: false

View console log messages

From webcompat.com with ❤️

softvision-oana-arbuzov commented 2 years ago

Thanks for the report, I was able to reproduce the issue. image

Note: The issue is not reproducible on Chrome.

Tested with: Browser / Version: Firefox Nightly 103.0a1 (🦎103.0a1-20220620095248), Firefox Release 101.2.0(🦎 101.0.1-20220608170832) Operating System: Google Pixel 5 (Android 12) - 1080 x 2340 pixels, 19.5:9 ratio (~432 ppi density), Samsung Galaxy S8 (Android 9) - 1440 x 2960 pixels, 18.5:9 ratio (~570 ppi density)

Moving to Needsdiagnosis for further investigation.

[qa_25/2022]

denschub commented 2 years ago

Same cause as https://github.com/mozilla-mobile/fenix/issues/12182, closing as a dupe.

walrus543 commented 2 years ago

@denschub Hello The last comment of the other issue says that the solution works. It was in Nov 2020. Not sure to understand what is the conclusion because both issues are closed and the problem is still there... Thank you.

denschub commented 2 years ago

@Primokorn that's a good point, actually. I may have mixed something up here while doing a quick triage. I'll reopen and check again :)

wisniewskit commented 2 years ago

The server is saying that the file's content-type is text/plain, so that could be throwing Firefox off. However, it's working fine for me on my macbook in the responsive design mode, as the downloaded file's extension is .img and not changed to .txt. So this is probably specific to the Android browser. I'll try on a phone ASAP.

wisniewskit commented 2 years ago

Yes, this seems to be phone-specific, as the same content-type is served to Android and it's saving the .img as a .txt. This does seem to effective be a duplicate of Fenix bug 25568.

I'm not sure, but perhaps the website could serve the files with the MIME type application/octet-stream to prevent this renaming? It's worth reaching out to them to do so anyway, as it might throw off other downloaders.

webcompat-bot commented 2 years ago

Generate outreach template