Don't use checkboxes for the "View Bookmarks Toolbar" and "View Bookmarks Sidebar" items in the Bookmarks button menu
Categories
(Firefox :: Bookmarks & History, defect, P1)
Tracking
()
People
(Reporter: Virtual, Assigned: Paolo)
References
(Depends on 1 open bug)
Details
(Keywords: nightly-community, ux-consistency, Whiteboard: [reserve-photon-structure])
Attachments
(5 files)
| Reporter | ||
Updated•9 years ago
|
| Reporter | ||
Comment 3•9 years ago
|
||
| Reporter | ||
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
| Reporter | ||
Updated•9 years ago
|
Updated•9 years ago
|
| Reporter | ||
Updated•8 years ago
|
| Reporter | ||
Updated•8 years ago
|
| Reporter | ||
Updated•8 years ago
|
Updated•8 years ago
|
| Reporter | ||
Updated•8 years ago
|
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 5•8 years ago
|
||
| Assignee | ||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
| Reporter | ||
Updated•8 years ago
|
| Assignee | ||
Updated•8 years ago
|
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
| mozreview-review | ||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Comment 13•8 years ago
|
||
| bugherder | ||
| Reporter | ||
Updated•8 years ago
|
| Reporter | ||
Updated•8 years ago
|
Comment 14•8 years ago
|
||
| Assignee | ||
Comment 15•8 years ago
|
||
| Reporter | ||
Comment 16•8 years ago
|
||
| Assignee | ||
Comment 17•8 years ago
|
||
Comment 18•8 years ago
|
||
Comment 19•8 years ago
|
||
| bugherder uplift | ||
Comment 20•8 years ago
|
||
| Reporter | ||
Comment 21•8 years ago
|
||
| Reporter | ||
Comment 22•8 years ago
|
||
Comment 23•8 years ago
|
||
Comment 24•8 years ago
|
||
Comment 25•7 years ago
|
||
Marco, can you sanity-check me here? I'm looking at this because I noticed the patch in https://phabricator.services.mozilla.com/D28177 (bug 1547496) which uses updateToggleControlLabel. As far as I can tell, that is used from e.g. https://searchfox.org/mozilla-central/rev/66086345467c69685434dd1c5177b30a7511b1a5/browser/base/content/browser.js#5989 for e.g. https://searchfox.org/mozilla-central/rev/66086345467c69685434dd1c5177b30a7511b1a5/browser/base/content/browser.xul#1249-1250 (and various other places changed by this patch). But updateToggleControlLabel wasn't updated and I don't see label-(un)checked in use anywhere, except the additions from bug 1533533. Was not updating updateToggleControlLabel just an oversight? Should it be removed from all the callsites that currently call it that never call it with an element that has a label-checked anyway?
Comment 26•7 years ago
|
||
(In reply to :Gijs (he/him) from comment #25)
Marco, can you sanity-check me here? I'm looking at this because I noticed the patch in https://phabricator.services.mozilla.com/D28177 (bug 1547496) which uses
updateToggleControlLabel. As far as I can tell, that is used from e.g. https://searchfox.org/mozilla-central/rev/66086345467c69685434dd1c5177b30a7511b1a5/browser/base/content/browser.js#5989 for e.g. https://searchfox.org/mozilla-central/rev/66086345467c69685434dd1c5177b30a7511b1a5/browser/base/content/browser.xul#1249-1250 (and various other places changed by this patch). ButupdateToggleControlLabelwasn't updated and I don't seelabel-(un)checkedin use anywhere, except the additions from bug 1533533. Was not updatingupdateToggleControlLabeljust an oversight? Should it be removed from all the callsites that currently call it that never call it with an element that has alabel-checkedanyway?
I'm not sure I follow the whole investigation, updateToggleControlLabel seems to be a util for elements having a "checked" attribute, that includes toolbarbuttons, menuitems and checkboxes. The patch here used its own implementation with label-show and label-hide and removed type="checkbox" from the menuitems, Paolo pointed out the existing system was more complex than just flipping the label, and we were more coherent with other bookmarks options by removing the checkbox. But he didn't remove the original code and updateToggleControlLabel stayed there.
If new consumers use a checkbox menuitems it seems to make sense to use updateToggleControlLabel, rather than reinventing the wheel.
If onViewToolbarCommand never acts on nodes having a label-checked, it should probably not invoke updateToggleControlLabel. We likely missed removing that.
Description
•