68 self.tr("The certificate claimed DNS names that are in" |
68 self.tr("The certificate claimed DNS names that are in" |
69 " violation of name constraints."), |
69 " violation of name constraints."), |
70 } |
70 } |
71 try: |
71 try: |
72 self.__errorDescriptions[ |
72 self.__errorDescriptions[ |
73 QWebEngineCertificateError.CertificateValidityTooLong] = \ |
73 QWebEngineCertificateError.CertificateValidityTooLong |
74 self.tr("The certificate has a validity period that is" |
74 ] = self.tr( |
75 " too long.") |
75 "The certificate has a validity period that is too long." |
|
76 ) |
76 except AttributeError: |
77 except AttributeError: |
77 # the value was added in Qt 5.7 |
78 # the value was added in Qt 5.7 |
78 pass |
79 pass |
79 try: |
80 try: |
80 self.__errorDescriptions[ |
81 self.__errorDescriptions[ |
81 QWebEngineCertificateError.CertificateTransparencyRequired] = \ |
82 QWebEngineCertificateError.CertificateTransparencyRequired |
82 self.tr("Certificate Transparency was required for this" |
83 ] = self.tr( |
83 " connection, but the server did not provide" |
84 "Certificate Transparency was required for this" |
84 " information that complied with the policy.") |
85 " connection, but the server did not provide" |
|
86 " information that complied with the policy." |
|
87 ) |
85 except AttributeError: |
88 except AttributeError: |
86 # the value was added in Qt 5.8 |
89 # the value was added in Qt 5.8 |
87 pass |
90 pass |
88 |
91 |
89 for host, errors in errorsDict.items(): |
92 for host, errors in errorsDict.items(): |