Skip to content

Bug 2040302 - Disable primary password controls in the Settings Redesign for enterprise-managed profiles#1176

Open
beurdouche wants to merge 1 commit into
mozilla:enterprise-mainfrom
beurdouche:bug-2040302-primary-password-settings-redesign
Open

Bug 2040302 - Disable primary password controls in the Settings Redesign for enterprise-managed profiles#1176
beurdouche wants to merge 1 commit into
mozilla:enterprise-mainfrom
beurdouche:bug-2040302-primary-password-settings-redesign

Conversation

@beurdouche

Copy link
Copy Markdown
Member

In enterprise builds the primary password is managed transparently and the user must not be able to add, change or remove it. The legacy about:preferences pane disables the controls imperatively in _initMasterPasswordUI(), but the Settings Redesign renders them through the declarative Preferences.addSetting() framework, whose disabled state is driven solely by each setting's disabled() callback.

The addPrimaryPassword, changePrimaryPassword and turnOffPrimaryPassword settings never consulted LoginHelper.isEnterpriseManagedPrimaryPassword(), so the redesign left them enabled. Add the enterprise check to those callbacks, restore it on the shared _initMasterPasswordUI() button (dropped in an earlier refactor), and cover the redesign behaviour with a browser-chrome test.

…ign for enterprise-managed profiles

In enterprise builds the primary password is managed transparently and the user
must not be able to add, change or remove it. The legacy about:preferences pane
disables the controls imperatively in _initMasterPasswordUI(), but the Settings
Redesign renders them through the declarative Preferences.addSetting() framework,
whose disabled state is driven solely by each setting's disabled() callback.

The addPrimaryPassword, changePrimaryPassword and turnOffPrimaryPassword settings
never consulted LoginHelper.isEnterpriseManagedPrimaryPassword(), so the redesign
left them enabled. Add the enterprise check to those callbacks, restore it on the
shared _initMasterPasswordUI() button (dropped in an earlier refactor), and cover
the redesign behaviour with a browser-chrome test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant