Closed Bug 1906326 Opened 3 months ago Closed 3 months ago

Backup preferences UI appears on unrelated panes if they're loaded first

Categories

(Firefox :: Profile Backup, defect, P3)

defect

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

Something about how we're initializing the backup-settings component makes the component visible, even if we're not on a pane that is supposed to show it, if that pane is the first to load.

STR:

  1. Launch the browser with browser.backup.preferences.ui.enabled set to true
  2. Visit about:preferences#sync

ER:

The backup preferences UI should not be displayed.

AR:

The backup preferences UI appears at the top of the Sync page, in this case.

Assignee: nobody → mconley

The preferences initialization code will take care of showing and hiding
this for us when loading different panes - it's the data-hidden-from-search
attribute removal that's allowing us to show the group when the preference
is enabled.

The existing test_preferences_visibility test under
browser/components/backup/test/browser/browser_settings.js tests that we
haven't regressed showing and hiding behaviour for the pref.

Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/42fb6fdf62d3 Don't manually unhide the dataBackupGroup in preferences if enabled. r=settings-reviewers,Gijs
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: