browserSettings.tlsVersionRestrictionConfig
A BrowserSetting object used to read the highest and lowest versions of TLS supported by the browser.
The object has these properties:
minimum-
The lowest TLS version supported by the browser. Valid values are
TLSv1,TLSv1.1,TLSv1.2,TLSv1.3, andunknown. maximum-
The highest TLS version supported by the browser. Valid values are
TLSv1,TLSv1.1,TLSv1.2,TLSv1.3, andunknown.
This is a read-only setting.
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
tlsVersionRestrictionConfig |
No | No | 72 | ? | No | No | ? | ? | 79 | ? | No | ? |
Examples
Get the highest TLS version supported by the browser:
browser.browserSettings.tlsVersionRestrictionConfig.maximum .get({}) .then((result) => { console.log(`Highest TLS version supported: ${result}`); });
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserSettings/tlsVersionRestrictionConfig