Bug 1512255 Comment 8 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Here's some code that would check for policies and DNSOverHTTPS

if (Services.policies.status == Services.policies.ACTIVE) {
  let policies = Services.policies.getActivePolicies()
  if (!("DNSOverHTTPS" in policies) {
    // Don't enable DNSOverHTTPS
  } else {
    // If they have configured DNSOverHTTPS, make sure policy wins
  }
}
Here's some code that would check for policies and DNSOverHTTPS

```
if (Services.policies.status == Services.policies.ACTIVE) {
  let policies = Services.policies.getActivePolicies()
  if (!("DNSOverHTTPS" in policies) {
    // Don't enable DNSOverHTTPS
  } else {
    // If they have configured DNSOverHTTPS, make sure policy wins
  }
```
}

Back to Bug 1512255 Comment 8