Closed Bug 2045798 Opened 5 months ago Closed 1 month ago

Expand SitePolicies to support Ephemeral Sessions

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=3])

User Story

As an admin, I want the SitePolicies policy to support an EphemeralStorage field, so that I can remove all site data for the matched site when the isolated site session ends.

Acceptance criteria:

- EphemeralStorage (boolean): Clears all site data for the matched site when the isolated site session ends. 

Implementation notes:
- https://firefox-admin-docs.mozilla.org/reference/policies/sitepolicies/
- https://firefox-admin-docs.mozilla.org/reference/policies/sanitizeonshutdown/
- When the isolated session ends, the browser purges cookies, localStorage, IndexedDB, cache, etc. for that site automatically. Session-end trigger is last tab for the origin closed / overlaps with SanitizeOnShutdown.
  - one proposal was to reuse Private Browsing mode for this.
  - Optionally, consider if an admin could enforce a time-to-live for the session (e.g. auto-delete after X hours / days of inactivity)

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

Attachments

(1 external file)

No description provided.
Blocks: 2044245
No longer depends on: 2044245
Severity: -- → S1
Whiteboard: [size=3]
No longer blocks: firefox-client-mvp
Depends on: 2052136
Assignee: nobody → dtownsend
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/211abcf08683 https://hg.mozilla.org/integration/autoland/rev/83446f1533c0 Revert "Bug 2045798, Bug 2045801: Support ephemeral containers in SitePolicies. r=bsmth" for causing xpcshell failures in test_sitepolicies.js.

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
Flags: needinfo?(dtownsend)

Please also check this failure.

Flags: needinfo?(dtownsend)
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Flags: qe-verify+
QA Contact: pmagyari

When SitePolicies is configured to open domains in containerized tabs with ephemeral set to true, all site data for the matched site is cleared when the isolated site session ends—that is, after its last tab is closed.

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: