Skip to content
Snippets Groups Projects
Commit 4c0986cb authored by cypherpunks1's avatar cypherpunks1
Browse files

fixup! Bug 23247: Communicating security expectations for .onion

Bug 33298: Warn when submitting form data from http onion sites over an insecure connection
parent d9327485
Branches
Tags
1 merge request!644Bug 33298: Warn when submitting form data from http onion sites over an insecure connection
......@@ -893,8 +893,11 @@ nsresult HTMLFormElement::DoSecureToInsecureSubmitCheck(nsIURI* aActionURL,
formIsHTTPS = OwnerDoc()->GetDocumentURI()->SchemeIs("https");
}
if (!formIsHTTPS) {
bool formIsOnion = nsMixedContentBlocker::IsPotentiallyTrustworthyOnion(OwnerDoc()->GetDocumentURI());
if (!formIsOnion) {
return NS_OK;
}
}
if (nsMixedContentBlocker::IsPotentiallyTrustworthyLoopbackURL(aActionURL)) {
return NS_OK;
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment