browser.privacy.network.httpsOnlyMode.set({ 'value': 'always' }) always returns false
Categories
(WebExtensions :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: crownofdesign, Unassigned, NeedInfo)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Steps to reproduce:
I created temporary extension with privacy permission and I run this code in console:
browser.privacy.network.httpsOnlyMode.set({ 'value': 'always' })
Actual results:
This code returned false, which means setting was not set. browser.privacy.network.httpsOnlyMode.get({}) returns { levelOfControl: "not_controllable", value: "never" }
Expected results:
This setting must be set to 'always'
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•3 years ago
|
||
Hello,
I believe I reproduced the issue however, I’d like for confirmation before setting the bug to New.
I installed Privacy Badger (https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search) since it has the “privacy” permission listed in the add-on manifest and accessed the add-on debug console.
I first ran the browser.privacy.network.httpsOnlyMode.set({ 'value': 'always' }) snippet and the resulting promise was “fulfilled” which led me to think the setting has been set. However, running browser.privacy.network.httpsOnlyMode.get({}) returned { levelOfControl: "not_controllable", value: "never" } which means the setting has not been actually set.
Tested on the latest Nightly (100.0a1/20220403215202), Beta (99.0/20220330194208) and Release (98.0.2/20220322144853) under Windows 10 x64 and Ubuntu 16.04 LTS.
Would you mind attaching the test extension you used as well so I actually test under the exact circumstances as you did? Thank you !
Comment 3•3 years ago
|
||
browser.privacy.network.httpsOnlyMode is a read-only setting, see also note in the related API reference from https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/privacy/websites
Description
•