From d26dc9c8ac734a62bbbbe498324324be0ea72e69 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Fri, 14 Jul 2023 08:29:36 -0500 Subject: [PATCH] [PM-2762] Update Logic on HTTP Warning (#5730) * [PM-2762] Update Logic on HTTP Warning * [PM-2762] Update apps/browser/src/autofill/content/autofill.js Co-authored-by: Jonathan Prusik --------- Co-authored-by: Jonathan Prusik --- apps/browser/src/autofill/content/autofill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/browser/src/autofill/content/autofill.js b/apps/browser/src/autofill/content/autofill.js index 052fd1120fe..f6db33af97d 100644 --- a/apps/browser/src/autofill/content/autofill.js +++ b/apps/browser/src/autofill/content/autofill.js @@ -751,8 +751,8 @@ ].join('\n\n'); if ( - // At least one of the `savedURLs` uses SSL - savedURLs.some(url => url.startsWith('https://')) && + // At least one of the `savedURLs` uses SSL for the current page + savedURLs.some(url => url.startsWith(`https://${window.location.hostname}`)) && // The current page is not using SSL document.location.protocol === 'http:' && // There are password inputs on the page