Skip to content

Cannot open jpg, gif, or png in code-server web IDE #3936

Closed
@bowdens07

Description

@bowdens07

OS/Web Information

  • Web Browser: chrome/firefox/edge
  • Local OS: Microsoft Windows 10 Pro 10.0.19042 Build 19042
  • Remote OS: N/A
  • Remote Architecture: N/A
  • code-server --version: 3.11.1 and 3.11.0

Steps to Reproduce

  1. Open a docker image of code-server with the specified versions above
  2. Upload a jpg, gif, or png image into the web IDE
  3. Double click the uploaded file to display the image

Expected

The image should display in a webview without error

Actual

Same error message below appears in chrome, firefox, and edge

cannotopenpng

Notes

There was a regression between versions 3.10.2 and 3.11.0. The bug does not occur on versions earlier than 3.11.0. There is no output on the console whenever this error occurs, which is 100% of the time. I am going to attempt to isolate the version which the bug starts. I will comment when I have done this.

This issue can be reproduced in VS Code: No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions