Add live support for policy HttpsOnlyMode
Categories
(Enterprise Products :: Firefox, enhancement, P1)
Tracking
(Not tracked)
People
(Reporter: janika, Assigned: janika)
References
Details
Attachments
(2 files)
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Comment 2•1 month ago
|
||
Authored by https://github.com/1rneh
https://github.com/mozilla/enterprise-firefox/commit/99fbc22527f194c7031c19578aae88f19822de58
[enterprise-main] Bug 2056608 - Add live support for policy HTTPSOnlyMode (#1196)
| Assignee | ||
Comment 3•1 month ago
|
||
Test Plan
Use http://http.badssl.com/ as HTTP-only test site.
How to verify the result of each test case
about:policies#active- listsHttpsOnlyModeand its current value.about:preferences#connectionSecurity- the HTTPS-Only Mode setting shows the expected option selected and is disabled ("managed by your organization") when the policy locks it, editable otherwise.- Navigation - with HTTPS-Only on, the Http site shows the "HTTPS-Only Mode Alert" error page (
about:httpsonlyerror); with it off, the page loads.
At every step, confirm the change happens without restarting the browser.
Test cases
1. Apply
- Confirm
HttpsOnlyModeis not active and the http site loads normally. - In the console, set
HttpsOnlyMode = force_enabled; wait for the next poll.
Expected:
- In
about:policies#active:HttpsOnlyModelisted asforce_enabled. - In
about:preferences#connectionSecurity: HTTPS-Only Mode on, control disabled. - Loading the HTTP site shows the "HTTPS-Only Mode Alert" error page.
2. Update I
- Change the value to
disallowed; wait for the next poll.
Expected:
- In
about:policies#active:HttpsOnlyModeupdated todisallowed. - In
about:preferences#connectionSecurity: HTTPS-Only Mode off, control disabled. - HTTP site loads.
2. Update II
- Change the value to
enabled; wait for the next poll.
Expected:
- In
about:policies#active:HttpsOnlyModeupdated toenabled. - In
about:preferences#connectionSecurity: HTTPS-Only Mode on, control editable. - Loading the HTTP site shows the "HTTPS-Only Mode Alert" error page.
3. Remove
- Remove
HttpsOnlyModefrom the policy set; wait for the next poll.
Expected:
- In
about:policies#active:HttpsOnlyModeno longer listed. - In
about:preferences#connectionSecurity: HTTPS-Only Mode back to its default (off), control editable (managed indicator gone). - HTTP site loads.
Comment 4•1 month ago
|
||
Comment 5•1 month ago
|
||
Authored by https://github.com/1rneh
https://github.com/mozilla/enterprise-firefox/commit/c2b0862fa4b61d9928b3a012ced54645e8ddc878
[enterprise-main] Bug 2056608 - Start test with clean policy engine
Authored by https://github.com/1rneh
https://github.com/mozilla/enterprise-firefox/commit/dc2940722ea0fa3347bbe3a970370f9e650e9b59
[enterprise-main] Merge pull request #1219 from 1rneh/bug-2056608-test-clean-start
Hello,
Verified this on Windows 11x64, with Firefox Enterprise 155.0a1 (20260803170225), and the policy works as expected and is live.
See TC here.
Please let us know if there is anything else we need to check.
Thank you.
Description
•