1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-06-21 09:45:05 +02:00

[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 <jprusik@users.noreply.github.com>

---------

Co-authored-by: Jonathan Prusik <jprusik@users.noreply.github.com>
This commit is contained in:
Cesar Gonzalez 2023-07-14 08:29:36 -05:00 committed by GitHub
parent d42e87fbc6
commit d26dc9c8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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