Pier Angelo Vendrame pushed to branch tor-browser-102.11.0esr-12.5-1 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • dom/html/HTMLFormElement.cpp
    ... ... @@ -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)) {