-
Notifications
You must be signed in to change notification settings - Fork 39
Bug 2064395 - Lock the FELT session on browser close #1308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: enterprise-main
Are you sure you want to change the base?
Changes from all commits
eddea3e
a4f1a39
ff6e6e7
734e74e
b28ff54
413a360
4e39aa0
26327a3
d7a5e73
7fbc6f0
3f579d0
7d6cb6a
3db3615
b30cb48
a51a9e5
8adb9c4
5a41a0c
5f93cc5
65d1136
8e27c47
b641286
5f93a61
1f60c29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3712,6 +3712,27 @@ export var Policies = { | |
| }, | ||
| }, | ||
|
|
||
| SignOut: { | ||
| onBeforeAddons(manager, param) { | ||
| if (param.BrowserClose) { | ||
| lazy.PoliciesUtils.setAndLockPref( | ||
| "enterprise.locking.browser_close", | ||
| param.BrowserClose.Action === "lock" | ||
| ); | ||
| } | ||
| }, | ||
| onRemove(manager, oldParams) { | ||
| if (oldParams.BrowserClose) { | ||
| lazy.PoliciesUtils.unsetAndUnlockPref( | ||
| "enterprise.locking.browser_close" | ||
| ); | ||
| // unsetAndUnlockPref restores the build default but never re-locks; | ||
| // re-lock to match the locked default the enterprise build ships. | ||
| Services.prefs.lockPref("enterprise.locking.browser_close"); | ||
| } | ||
| }, | ||
| }, | ||
|
jporter-dev marked this conversation as resolved.
Comment on lines
+3715
to
+3734
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment regarding Thunderbird |
||
|
|
||
| SitePolicies: { | ||
| /** | ||
| * Converts a wildcard domain into a match pattern. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4164,6 +4164,43 @@ | |
| "examples": [true] | ||
| }, | ||
|
|
||
| "SignOut": { | ||
| "type": "object", | ||
| "x-category": "Authentication", | ||
| "x-compatibility": { | ||
| "firefox": { | ||
| "version_added": false | ||
| }, | ||
| "firefox_esr": { | ||
| "version_added": false | ||
| }, | ||
| "firefox_enterprise": { | ||
| "version_added": "156" | ||
| } | ||
| }, | ||
| "x-restart-required": false, | ||
| "description": "Control whether the managed session is signed out or locked when the browser closes.", | ||
| "examples": [ | ||
| { | ||
| "BrowserClose": { | ||
| "Action": "lock" | ||
| } | ||
| } | ||
| ], | ||
| "properties": { | ||
| "BrowserClose": { | ||
| "type": "object", | ||
| "properties": { | ||
| "Action": { | ||
| "type": "string", | ||
| "enum": ["signout", "lock"] | ||
| } | ||
| }, | ||
| "required": ["Action"] | ||
| } | ||
| } | ||
| }, | ||
|
Comment on lines
+4167
to
+4202
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please make either a port of this for Thunderbird if it is a policy that should be handled there, or update allowed differences of https://searchfox.org/comm-central/source/mail/components/enterprisepolicies/tests/browser/browser_policies_differences.js Or at least ping me when you land so I can adapt it Also update/adapt https://docs.google.com/spreadsheets/d/1h-UmrLEBVmLVEl9eIVQlNkrP-NkgGXfxpzN5tJWCWv4/edit?pli=1&gid=1904079787#gid=1904079787 ?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or at least file a bug blocking
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is the TB version of this: https://bugzilla.mozilla.org/show_bug.cgi?id=2060195
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So we will have a different policy? Can you make sure you have a patch in the meantime to allow for the missing policy? Otherwise tests will fail and thunderbird people or myself will have to make the fix |
||
|
|
||
| "SitePolicies": { | ||
| "type": "array", | ||
| "x-category": "Browsing restrictions", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.