autoupgrade and block resources if they fail to load over https://
Categories
(Core :: DOM: Security, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | affected |
People
(Reporter: karlcow, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [domsecurity-backlog3])
- With Firefox 95 Nightly
- Go to a site using https with images sent as http
Expected:
Images being displayed
Actual:
Images are being blocked.
The three browsers here have different strategies.
- Firefox blocks the mixed content
- Safari Tech Preview let it go through with a warning in the console.
- Blink (Edge) tries to upgrade to https and if the loading is failing, blocks the image.
I'm setting Webcompat P2 because this is a major difference of behavior in between browsers.
![]() |
Reporter | |
Updated•4 years ago
|
Updated•4 years ago
|
Comment 1•2 years ago
|
||
The actual site seems to be broken in both Chrome and Firefox now.
Is this bug still valid i.e. are we still shipping a different strategy to other browsers?
Comment 2•2 years ago
|
||
I don't believe we ever blocked mixed image content, unless someone fiddled with their own prefs.
The actual site seems to be broken in both Chrome and Firefox now.
Yes, I believe the site itself is broken. Without a screenshot I'm not sure what the old state was, but currently I don't see "images are blocked"; the page is full of images that load just fine. The main article picture of the illusion uses an http: URL and that one single image is broken.
The site itself serves a strict-transport-security
header, so despite having an "http:" URL in its content, all the browsers will attempt to load https: instead. If you load the http: image directly (for example, using cURL) you get a 301 to the https: equivalent. So no matter what a browser's strategy wrt mixed-content, it's going to try to load the https:// version of the .gif. But that file doesn't seem to exist and returns a text/html 404 page which results in a broken image no matter how you got there.
Is this bug still valid i.e. are we still shipping a different strategy to other browsers?
We are, but I believe WPT for the mixed-content spec covers those differences (see bug 1514396). Release Firefox will load mixed-content images as was described as Safari behavior (Mixed-Content Blocking version 1), and that should have been the Firefox behavior well before this bug was filed. Chrome upgrades mixed-content images (Mixed-content blocking version 2), as does Firefox Nightly (not riding the trains... experiments are checking breakage).
Because the site itself is broken I doubt this bug is helping anything.
Description
•