forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TLS min/max in browserSettings (mdn#17832)
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
.../add-ons/webextensions/api/browsersettings/tlsversionrestrictionconfig/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: browserSettings.tlsVersionRestrictionConfig | ||
slug: Mozilla/Add-ons/WebExtensions/API/browserSettings/tlsVersionRestrictionConfig | ||
tags: | ||
- API | ||
- Add-ons | ||
- Extensions | ||
- Property | ||
- Reference | ||
- WebExtensions | ||
- browserSettings | ||
- tlsVersionRestrictionConfig | ||
browser-compat: webextensions.api.browserSettings.tlsVersionRestrictionConfig | ||
--- | ||
{{AddonSidebar()}} | ||
|
||
A {{WebExtAPIRef("types.BrowserSetting", "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`, and `unknown`. | ||
- `maximum` | ||
- : The highest TLS version supported by the browser. Valid values are `TLSv1`, `TLSv1.1`, `TLSv1.2`, `TLSv1.3`, and `unknown`. | ||
|
||
This is a read-only setting. | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## Examples | ||
|
||
Get the highest TLS version supported by the browser: | ||
|
||
```js | ||
browser.browserSettings.tlsVersionRestrictionConfig.maximum.get({}).then(result => { | ||
console.log(`Highest TLS version supported: ${result}`); | ||
}); | ||
``` | ||
|
||
{{WebExtExamples}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters