Mixed content blocker can block requests only when running with --use-http2-server/--use-http3-server flags
Categories
(Core :: Networking, defect)
Tracking
()
People
(Reporter: emilio, Unassigned)
References
Details
This got me backed out in bug 1891335 because I changed some iframes to use http://.
It is apparently expected (per this) that mochitests with those flags run in https mode.
However, I think then http:// iframes should probably not be blocked, but upgraded to https:// as well?
Trivial test-case is changing this line to use http://. Then, the test fails only with --use-http2-server / --use-http3-server.
Updated•1 year ago
|
Comment 1•1 year ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #0)
This got me backed out in bug 1891335 because I changed some iframes to use
http://.It is apparently expected (per this) that mochitests with those flags run in https mode.
However, I think then http:// iframes should probably not be blocked, but upgraded to https:// as well?
Trivial test-case is changing this line to use
http://. Then, the test fails only with--use-http2-server/--use-http3-server.
The request is blocked in nsHttpChannel::AsyncOpen, which occurs before an opportunity to perform an HTTPS upgrade.
Due to our current architecture, we cannot determine if an HTTPS record is available during nsHttpChannel::AsyncOpen, making it impossible to perform an HTTPS upgrade at that stage.
So, we must either accept this workaround or skip this test when using an HTTP/2 or HTTP/3 server.
Description
•