Skip to content

ix.io - File displayed as txt Firefox #25052

Open

Description

@bodyowns

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 ❤️

Activity

  1. added this to the needstriage milestone on Jan 29, 2019
  2. bodyowns commented on Jan 29, 2019

    @bodyowns
    Author

    in google chrome it works

  3. added
    os-linux
    on Feb 12, 2019
  4. added
    severity-important
    on Feb 14, 2019
  5. changed the title [-]ix.io - see bug description[/-] [+]ix.io - File displayed as txt Firefox[/+] on Feb 14, 2019
  6. softvision-oana-arbuzov commented on Feb 14, 2019

    @softvision-oana-arbuzov
    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.

  7. wisniewskit commented on Feb 14, 2019

    @wisniewskit
    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.

  8. self-assigned this
    on Feb 14, 2019
  9. added
    type-server-issue
    on Feb 14, 2019
  10. wisniewskit commented on Feb 14, 2019

    @wisniewskit
    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.

  11. added
    engine-gecko
    on Apr 30, 2019
  12. softvision-sergiulogigan commented on Nov 7, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser-firefoxengine-geckoos-linuxseverity-importanttype-server-issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions