mozilla / policy-templates

Policy Templates for Firefox
Mozilla Public License 2.0
1.15k stars 415 forks source link

Failed to set `geo.enabled` #1072

Closed qupig closed 9 months ago

qupig commented 9 months ago

According to documentation Preferences, it supports geo.

But after setting:

<key>Preferences</key>
<dict>
    <key>geo.enabled</key>
    <dict>
        <key>Value</key>
        <string>false</string>
        <key>Status</key>
        <string>locked</string>
    </dict>
</dict>

In about:policies#errors:

Unable to set preference geo.enabled. Probable type mismatch.

This is what it looks like before and after in about:config:

before after

mkaply commented 9 months ago

Because it;'s a boolean, it needs to be set as:

<false/>
qupig commented 9 months ago

OH, my bad, didn't notice that.

Thank you for the correction!

mkaply commented 9 months ago

No problem. Please let me know if you need anything else.