Pier Angelo Vendrame pushed to branch tor-browser-102.11.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
4c0986cb
by cypherpunks1 at 2023-05-23T14:06:01-08:00
1 changed file:
Changes:
| ... | ... | @@ -893,7 +893,10 @@ nsresult HTMLFormElement::DoSecureToInsecureSubmitCheck(nsIURI* aActionURL, |
| 893 | 893 | formIsHTTPS = OwnerDoc()->GetDocumentURI()->SchemeIs("https");
|
| 894 | 894 | }
|
| 895 | 895 | if (!formIsHTTPS) {
|
| 896 | - return NS_OK;
|
|
| 896 | + bool formIsOnion = nsMixedContentBlocker::IsPotentiallyTrustworthyOnion(OwnerDoc()->GetDocumentURI());
|
|
| 897 | + if (!formIsOnion) {
|
|
| 898 | + return NS_OK;
|
|
| 899 | + }
|
|
| 897 | 900 | }
|
| 898 | 901 | |
| 899 | 902 | if (nsMixedContentBlocker::IsPotentiallyTrustworthyLoopbackURL(aActionURL)) {
|