Closed Bug 2045801 Opened 5 months ago Closed 1 month ago

Expand SitePolicies to support Containerized Site Data

Categories

(Enterprise Products :: Firefox, enhancement, P1)

enhancement

Tracking

(firefox158 verified)

VERIFIED FIXED
Tracking Status
firefox158 --- verified

People

(Reporter: bsmth, Assigned: mossop)

References

(Blocks 1 open bug)

Details

(Whiteboard: [size=2.5])

User Story

As an admin, I want the SitePolicies policy to support an ContainerizedSiteData field, so that I can require specified sites to open in a designated Firefox Container

Acceptance criteria:

- The policy supports a clear admin-defined container identifier, such as a container name or ID.
- When a user navigates to a matched site outside the required container, Firefox opens the site in the configured container.

Implementation notes:
- https://firefox-admin-docs.mozilla.org/reference/policies/sitepolicies/
- This feature is about persistent container-based isolation, not ephemeral site-data deletion.
- Consider whether admins should be able to configure container metadata such as color & icon, and whether the container is hidden from user editing (likely not user editable).

Out of scope:
- New site-matching syntax; constraints reuse the existing SitePolicies site-matching mechanism.

Attachments

(2 external files, 1 obsolete file)

No description provided.
Severity: -- → S1
Whiteboard: [size=2]
No longer blocks: firefox-client-mvp
Assignee: nobody → dtownsend
Whiteboard: [size=2] → [size=2.5]
Depends on: 2052136
Pushed by imoraru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/58645bd97ec3 https://hg.mozilla.org/integration/autoland/rev/c41ad1fac7e1 Revert "Bug 2045801: Expand SitePolicies to support containerized site data. r=bsmth,baku" for causing build bustages on ProcessIsolationTest.cpp.

Revert for causing build bustages on ProcessIsolationTest.cpp.

Flags: needinfo?(dtownsend)
Flags: needinfo?(dtownsend)
Pushed by dtownsend@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/16f1aef10473 https://hg.mozilla.org/integration/autoland/rev/80c3d239af14 Expand SitePolicies to support containerized site data. r=bsmth,baku,ipc-reviewers

Reverted this because it was causing xpcshell failures in test_sitepolicies.js.

  • Revert link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/components/enterprisepolicies/tests/xpcshell/test_sitepolicies.js | test_isAllowedForSite - [test_isAllowedForSite : 35] Policy service should return the expected state for http://example.com/ (site: [xpconnect wrapped nsIURI]) - true == false

Please also check [this failure](Please also check this failure.).

Flags: needinfo?(dtownsend)
Pushed by dtownsend@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1a1c3e68e94c https://hg.mozilla.org/integration/autoland/rev/acbb8278a056 Expand SitePolicies to support containerized site data. r=bsmth,baku,ipc-reviewers
Flags: needinfo?(dtownsend)
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Attachment #9637826 - Attachment is obsolete: true
Flags: qe-verify+
QA Contact: pmagyari

Setting SitePolicies to open a domain in a containerized tab works accordingly, I have checked this by pasting gBrowser.selectedTab.userContextId into the browser console (if it returns anything other than "0" it has been loaded in a container).

Verified using Firefox Enterprise 158.0b5 (20261006191302) and Firefox Enterprise 159.0a1 (20260930034337).

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: