Open Bug 2087136 Opened 1 month ago Updated 5 days ago

www.luchtgordijnen.com - The images are not displayed

Categories

(Web Compatibility :: Site Reports, defect, P3)

Firefox 161
Desktop
Windows

Tracking

(Webcompat Priority:P3, Webcompat Score:4, firefox159 affected, firefox160 affected, firefox161 affected)

Webcompat Priority P3
Webcompat Score 4
Tracking Status
firefox159 --- affected
firefox160 --- affected
firefox161 --- affected

People

(Reporter: bfarkas, Unassigned)

References

()

Details

(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success])

User Story

autowebcompat-repro-status:success
autowebcompat-repro-chrome-mask-fixed:false
autowebcompat-repro-channels:nightly,stable,esr
autowebcompat-repro-report-os:all
autowebcompat-diagnosis-status:success
platform:windows,mac,linux,android
impact:content-missing
configuration:general
affects:all
branch:release
diagnosis-team:security
user-impact-score:60

Attachments

(3 files)

Environment:
Operating system: Windows 10
Firefox version: Firefox 158.0.1 (release) / Firefox Nightly 161.0a1 (2026-10-28)

Preconditions:

  • Clean profile

Steps to reproduce:

  1. Navigate to: https://www.luchtgordijnen.com/technologie/hoe-werkt-een-luchtgordijn
  2. Observe the page

Expected Behavior:
The page is displayed accordingly

Actual Behavior:
The images are not displayed

Notes:

  • Reproducible on the latest Firefox Release and Nightly
  • Reproducible regardless of the ETP setting
  • Works as expected using Chrome

Created from webcompat-user-report:a4b8cd94-1d16-4481-8873-3bb7ea408f8b

Whiteboard: [webcompat-source:product] → [webcompat-source:product][autowebcompat:processed][autowebcompat:reproduction-in-progress]
User Story: (updated)
Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:reproduction-in-progress] → [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success][autowebcompat:diagnose]

In Firefox, all the content JPG images on the page (the ones under /media/webstructure/technology/) show up as broken: they finish loading but never decode, so none of them appear. Chrome loads and displays the same images normally. The SVG logo shows fine in both browsers.

Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success][autowebcompat:diagnose] → [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success][autowebcompat:diagnosis-in-progress]

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Root cause analysis generated by autowebcompat bot:

The page is served over https and sends Content-Security-Policy: ... img-src 'self' data: https:. But the content images are hard-coded as **http://**www.airtecnics.com/media/webstructure/technology/... URLs. Both browsers auto-upgrade mixed display content (<img>) from http to https. The difference is the order of the two checks.

Chrome follows Fetch main fetch. It first runs "upgrade a mixed content request to a potentially trustworthy URL" (Mixed Content upgrade algorithm). Only after that does it run "should request be blocked by Content Security Policy". So CSP sees the https:// URL, img-src https: allows it, and the images load.

Firefox checks CSP against the original, not-yet-upgraded http:// URL. The https: source expression rejects it, so the load is blocked before any request is made. The <img> ends up complete with naturalWidth 0, and decode() rejects with EncodingError. That is why the JPGs look broken. The logo is fine because it is same-origin/https.

Evidence:

Firefox console on the site shows one error per image: Content-Security-Policy: The page's settings blocked the loading of a resource (img-src) at http://www.airtecnics.com/media/webstructure/technology/en/Vertical-air-curtain.jpg because it violates the following directive: "img-src 'self' data: https:". Firefox's network panel shows no request for these images.

Firefox: all 6 images have currentSrc http://..., naturalWidth 0, and decode() throws EncodingError: Invalid image request. Chrome: currentSrc is the upgraded https://... URL and naturalWidth is 1000 or 475 for all 6.

With curl, the http URL 302-redirects to https, and the https URL returns a valid image/jpeg (475x474). So the image itself is fine.

Reduced check on an https origin: I added a <meta http-equiv=CSP content="img-src https: data:"> and an <img> with an http:// cross-origin URL. Chrome: upgraded to https, naturalWidth 475. Firefox: stayed http, naturalWidth 0, blocked by CSP. Control <img> with an https:// URL loaded in both.

The testcase file (testcase=q1qu3uyp.html) only reproduces when served from a real https origin. On http://localhost neither browser auto-upgrades mixed content, so both fail. For that reason it is not submitted as a confirmed testcase.


If you'd like to provide feedback on diagnosis, please use the 👍 or 👎 reaction.

User Story: (updated)
Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success][autowebcompat:diagnosis-in-progress] → [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success]

ni? myself to link this towards the other bugs we have for this.

User Story: (updated)
Flags: needinfo?(sky)
Severity: -- → S2
User Story: (updated)
Webcompat Priority: --- → P3
Webcompat Score: --- → 4
Depends on: 2094645
Flags: needinfo?(sky)
Priority: -- → P3
No longer depends on: 2094645
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: