browserSettings.tlsVersionRestrictionConfig
一个 BrowserSetting
对象,用于读取浏览器支持的 TLS(传输层安全)版本的最高和最低值。
该对象具有以下属性:
minimum
-
浏览器支持的最低 TLS 版本。有效值为
TLSv1
、TLSv1.1
、TLSv1.2
、TLSv1.3
和unknown
。 maximum
-
浏览器支持的最高 TLS 版本。有效值为
TLSv1
、TLSv1.1
、TLSv1.2
、TLSv1.3
和unknown
。
这是一个只读设置。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
tlsVersionRestrictionConfig |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
示例
获取浏览器支持的最高 TLS 版本:
js
browser.browserSettings.tlsVersionRestrictionConfig.maximum
.get({})
.then((result) => {
console.log(`支持的最高 TLS 版本:${result}`);
});