Open
Bug 1395983
Opened 7 years ago
Updated 9 months ago
Ensure CustomizableUI does not save unnecessary state on new profiles
Categories
(Firefox :: Toolbars and Customization, enhancement, P5)
Firefox
Toolbars and Customization
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox57 | --- | wontfix |
People
(Reporter: Paolo, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
Details |
We should verify that the CustomizableUI module does not create any saved state on profiles that have not been customized by the user, which is the whole point of having lazy initialization of the customization state.
Comment hidden (mozreview-request) |
Reporter | ||
Comment 2•7 years ago
|
||
This seems to fail because hookDeveloperToggle calls CustomizableUI.createWidget:
https://dxr.mozilla.org/mozilla-central/rev/13d241d08912be31884f9d0d0e805b25343d6c0a/devtools/shim/devtools-startup.js#272
Comment 3•7 years ago
|
||
TBH, I think it's fine for there to be "seen" widgets, but the state of the navbar and other toolbars should not have been saved in this case. I didn't think we did save them if they matched the defaults, but maybe that's not actually what happens.
Comment 4•7 years ago
|
||
Tweaking the summary. I think this is worthwhile if we can basically drop area placements from being saved when they're at the default. We will likely need to remove support for persisted currentsets in that case (which we should do anyway). That way we can minimize the amount of data we store in the pref.
Summary: Ensure CustomizableUI does not save state on new profiles → Ensure CustomizableUI does not save unnecessary state on new profiles
Updated•7 years ago
|
status-firefox57:
--- → wontfix
Priority: -- → P5
Updated•6 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Comment 6•6 years ago
|
||
(In reply to :Gijs (he/him) from comment #5)
> This should be better after bug 1510321 lands.
Nope. I still see it saving placements for every single area.
Updated•2 years ago
|
Severity: normal → S3
Comment 7•9 months ago
|
||
When working on the review for https://phabricator.services.mozilla.com/D209978 I think I finally figured out one piece of this puzzle.
I think this marks any toolbar with "special" nodes (like the springs / flexible spaces in the navbar!) as dirty, because the ID in defaultPlacements
("spring") won't match the id in placements
, which will be of the form customizableui-special-spring1
etc. Which means they get saved.
This should be straightforward to fix but I'm not sure what the fallout will be at this point, having lived with the current status for so long.
You need to log in
before you can comment on or make changes to this bug.
Description
•