75 self.tr("The certificate has a validity period that is" |
75 self.tr("The certificate has a validity period that is" |
76 " too long.") |
76 " too long.") |
77 except AttributeError: |
77 except AttributeError: |
78 # the value was added in Qt 5.7 |
78 # the value was added in Qt 5.7 |
79 pass |
79 pass |
80 # TODO: Qt 5.8 - add support for QWebEngineCertificateError.CertificateTransparencyRequired |
80 try: |
|
81 self.__errorDescriptions[ |
|
82 QWebEngineCertificateError.CertificateTransparencyRequired] = \ |
|
83 self.tr("Certificate Transparency was required for this" |
|
84 " connection, but the server did not provide" |
|
85 " information that complied with the policy.") |
|
86 except AttributeError: |
|
87 # the value was added in Qt 5.8 |
|
88 pass |
81 |
89 |
82 for host, errors in errorsDict.items(): |
90 for host, errors in errorsDict.items(): |
83 itm = QTreeWidgetItem(self.errorsTree, [host]) |
91 itm = QTreeWidgetItem(self.errorsTree, [host]) |
84 self.errorsTree.setFirstItemColumnSpanned(itm, True) |
92 self.errorsTree.setFirstItemColumnSpanned(itm, True) |
85 for error in errors: |
93 for error in errors: |