mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1154012 - dev tools and alt-svc r=vporof
This commit is contained in:
parent
54ed4b46e7
commit
c63887599f
@ -36,8 +36,8 @@ netmonitor.security.state.secure=The connection used to fetch this resource was
|
||||
|
||||
# LOCALIZATION NOTE (netmonitor.security.state.insecure)
|
||||
# This string is used as an tooltip for request that was performed over insecure
|
||||
# channel i.e. the connection was not encrypted.
|
||||
netmonitor.security.state.insecure=The connection used to fetch this resource was not encrypted.
|
||||
# channel i.e. the connection was not https
|
||||
netmonitor.security.state.insecure=The connection used to fetch this resource was not secure.
|
||||
|
||||
# LOCALIZATION NOTE (netmonitor.security.state.broken)
|
||||
# This string is used as an tooltip for request that failed due to security
|
||||
|
@ -577,8 +577,17 @@ let NetworkHelper = {
|
||||
if (!NSSErrorsService.isNSSErrorCode(securityInfo.errorCode)) {
|
||||
const state = securityInfo.securityState;
|
||||
|
||||
if (state & wpl.STATE_IS_SECURE) {
|
||||
// The connection is secure.
|
||||
let uri = null;
|
||||
if (httpActivity.channel && httpActivity.channel.URI) {
|
||||
uri = httpActivity.channel.URI;
|
||||
}
|
||||
if (uri && !uri.schemeIs("https") && !uri.schemeIs("wss")) {
|
||||
// it is not enough to look at the transport security info - schemes other than
|
||||
// https and wss are subject to downgrade/etc at the scheme level and should
|
||||
// always be considered insecure
|
||||
info.state = "insecure";
|
||||
} else if (state & wpl.STATE_IS_SECURE) {
|
||||
// The connection is secure if the scheme is sufficient
|
||||
info.state = "secure";
|
||||
} else if (state & wpl.STATE_IS_BROKEN) {
|
||||
// The connection is not secure, there was no error but there's some
|
||||
|
Loading…
Reference in New Issue
Block a user