Profiler - change animation to be the same as for the other [list_item >](s) added to the Customize Overflow Menu
Categories
(Firefox :: Toolbars and Customization, defect, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | wontfix |
firefox88 | --- | wontfix |
firefox89 | --- | wontfix |
firefox90 | --- | fix-optional |
People
(Reporter: cfogel, Unassigned)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
59.94 KB,
image/gif
|
Details |
Affected versions
- 88.0a1(2021-05-03); 87.0b5;
Affected platforms
- Windows 10, macOS 10.13
Steps to reproduce
- Launch Firefox, access the Customize page(right click on toolbar);
- Add several buttons on the Overflow section;
- Add the Profiler & Froget buttons as well;
- Grab the Profiler button / do the same for Forget button;
Expected result
- items that have " >" at the right edge should be consistent across one another;
Actual result
- Profiler item has different animation (expanding across area instead of just the icon being animated) as opposed to Forget/TextEncoding and the other items;
Regression range
- not a regression, initial implementation did not have any animation; marking as bad the build/date when the current implementation was added:
- First bad: 2021-01-16;
- Last good: 2021-01-15;
- Pushlog: URL;
- Potential "regressor": bug 1650835 looks like the candidate;
Additional notes
- attached recording to illustrate the "issue";
- this is not a regression, just that the item might be better suited to have the same animation for consistency.
Reporter | ||
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 2•4 years ago
•
|
||
I investigated a bit, and especially I compared with the "History" button, which is similar (it also has a arrow at the right).
The Profiler button is special, because it has a "drop marker" (the small arrow when it's added to the toolbar). This is what makes it behave specially here.
Indeed normal buttons have this DOM hierarchy:
<toolbarpaletteitem>
<toolbarbutton>
<image>
<button>
::after
(::after
is for the arrow at the right, not all buttons have it)
while the profiler button has this DOM hierarchy:
<toolbarpaletteitem>
<toolbaritem class="toolbaritem-combined-buttons chromeclass-toolbar-additional">
<toolbarbutton>
<image>
<button>
::after
I could see 2 important differences when added in the overflow menu:
- The difference on
mousedown
, which is the initial issue in this bug.
This is how the Profiler button reacts [1]:
toolbarpaletteitem[mousedown] > toolbaritem.toolbaritem-combined-buttons {
transform: scale(1.1);
}
But this is how the History button reacts [2]:
toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-icon,
toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-badge-stack > .toolbarbutton-icon {
transform: scale(1.3);
}
As you see, the presence of this toolbaritem
makes this difference. I would say that the first transform
is incorrect (do we have more "combined buttons"?), and we should add the possibility of a toolbaritem
.
- The opacity for the arrow icon.
For the History
button, this comes from [3]:
toolbarpaletteitem[place="menu-panel"] > .subviewbutton-nav::after {
opacity: 0.5;
}
As you see, the fact we have a toolbaritem
makes that we miss this rule again.
- Also do we need so strict CSS selectors with the "direct child" compound operator?
I know there's this explanation around "efficient CSS selectors" but I believe it's very minor when the right element of the selector is already selective enough, and even in other cases when we use class selectors anywhere, because we have bloom filters for class selectors (IIRC, I'm far from being an expert here). And the price to pay is that it's easier to miss cases.
[1] https://searchfox.org/mozilla-central/rev/9043e515e9608cc55b252a40cb2dfb6f767bcffd/browser/themes/shared/customizableui/customizeMode.inc.css#213-215
[2] https://searchfox.org/mozilla-central/rev/9043e515e9608cc55b252a40cb2dfb6f767bcffd/browser/themes/shared/customizableui/customizeMode.inc.css#207-210
[3] https://searchfox.org/mozilla-central/rev/9043e515e9608cc55b252a40cb2dfb6f767bcffd/browser/themes/shared/customizableui/panelUI.inc.css#1830-1832
From this analysis I'm moving this to the Customization component.
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Maybe bug 1698436 improved things here?
Comment 4•4 years ago
|
||
Currently I don't see a difference, even with proton enabled, should I enable more prefs to try this change?
Comment 5•4 years ago
|
||
Per the last few comments, maybe this is fixed now?
Comment 6•4 years ago
|
||
Ah, I see how my comment 4 could be confusing.
I meant that either with or without proton enabled, I still see the issue as described.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•