Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ix.io - File displayed as txt Firefox #25052

Open
bodyowns opened this issue Jan 29, 2019 · 5 comments
Open

ix.io - File displayed as txt Firefox #25052

bodyowns opened this issue Jan 29, 2019 · 5 comments
Labels
browser-firefox engine-gecko The browser uses the Gecko rendering engine os-linux Issues only happening on Linux. severity-important A non-core broken piece of functionality, not behaving the way you would expect. type-server-issue Server configuration issue
Milestone

Comments

@bodyowns
Copy link

URL: http://ix.io/1zv0

Browser / Version: Firefox 64.0
Operating System: Linux
Tested Another Browser: Yes

Problem type: Something else
Description: doesn't display the png image, displays a text, but in chrome it does
Steps to Reproduce:

Screenshot Description

Browser Configuration
  • None

Reported by @bodyowns

From webcompat.com with ❤️

@bodyowns
Copy link
Author

in google chrome it works

@softvision-sergiulogigan softvision-sergiulogigan added the os-linux Issues only happening on Linux. label Feb 12, 2019
@softvision-oana-arbuzov softvision-oana-arbuzov added the severity-important A non-core broken piece of functionality, not behaving the way you would expect. label Feb 14, 2019
@softvision-oana-arbuzov softvision-oana-arbuzov changed the title ix.io - see bug description ix.io - File displayed as txt Firefox Feb 14, 2019
@softvision-oana-arbuzov
Copy link
Member

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

Note: Saving the file on Chrome, it seems that it is a txt file.
1zv0.txt

<img style="-webkit-user-select: none;cursor: zoom-in;" src="http://ix.io/1zv0" width="810" height="455">

Tested with:
Browser / Version: Firefox Nightly 67.0a1 (2019-02-12)
Operating System: Linux Ubuntu 16.04

Moving to Needsdiagnosis for further investigation.

@wisniewskit
Copy link
Member

The web server is telling Chrome and Firefox that it's a text file, not the PNG image it is:

Content-Type | text/plain; charset=utf-8

Chrome still goes ahead and decides it's an image, while Firefox trusts the server.

(Note that when saving the file, Chrome saves not what the server sends it, but rather a link, which seems bogus to me.)

I've filed bz1527955 to investigate whether Firefox should also sniff the actual type of the file and display it as a PNG.

@wisniewskit wisniewskit self-assigned this Feb 14, 2019
@wisniewskit wisniewskit modified the milestones: needsdiagnosis, duplicate Feb 14, 2019
@wisniewskit wisniewskit added the type-server-issue Server configuration issue label Feb 14, 2019
@wisniewskit wisniewskit reopened this Feb 14, 2019
@wisniewskit wisniewskit modified the milestones: duplicate, needscontact Feb 14, 2019
@wisniewskit
Copy link
Member

Actually, I've decided to mark this as needscontact, since the site should really be serving this file with the correct MIME type for an image (image/png) rather than pretending it's plain text.

@miketaylr miketaylr added the engine-gecko The browser uses the Gecko rendering engine label Apr 30, 2019
@softvision-sergiulogigan

This is still reproducible.

Tested with:
Browser / Version: Firefox Nightly 72.0a1 (2019-11-05)
Operating System: Windows 10 Pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser-firefox engine-gecko The browser uses the Gecko rendering engine os-linux Issues only happening on Linux. severity-important A non-core broken piece of functionality, not behaving the way you would expect. type-server-issue Server configuration issue
Projects
None yet
Development

No branches or pull requests

6 participants