Composition's Formatting Bar wrongly disabled when using paragraph format or font selector menulist dropdowns
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr6868+ fixed, thunderbird69 fixed, thunderbird70 fixed)
People
(Reporter: thomas8, Assigned: jorgk-bmo)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
1.00 KB,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
Regression: not seen on 60.5.0 (32-bit), seen on 67.0a1 (2019-02-11) (64-bit).
This does not seem to impede functionality, but it's irritating and looks unprofessional.
STR
- Compose new message
- Focus msg body (even after typing and selecting text)
- Click into paragraph format or font selector to change them (menulist dropdowns on formatting bar)
Actual result
Formatting bar disabled
Expected result
Formatting bar not disabled
Comment 1•6 years ago
|
||
I don't see this on trunk.
| Assignee | ||
Comment 2•6 years ago
|
||
I'm not seeing this in TB 68 fortunately.
| Reporter | ||
Comment 3•6 years ago
|
||
Using STR of comment 0, easily and reliably reproducable on TB 70.0a1 (2019-08-14) (64-bit).
STR
- Compose
- Focus msg body (initially correctly enables formatting toolbar); optionally select some msg body text.
- Single-Click into either of the following dropdown selectors: Paragraph format | Font (dropdown now open), and observe toolbar status
- Click on disabled top part of dropdown selector again to close it (I need the other one...), and observe toolbar status
Actual result:
- after step 3(!): first normal click on selector correctly opens the dropdown, but incorrectly disables the entire toolbar including the toolbar item (top part) of the currently active selector - clearly wrong. (Note: The dropdown list itself is enabled, has focus and is functional unless for cases of step 4.)
- after step 4: second click on disabled selector or anywhere else on formatting toolbar closes the dropdown and now makes the entire disabled toolbar inaccessible, without any indication of focus. Also very wrong, especially when the last focus was on selected text, so all formatting commands should be enabled.
Expected result:
- after step 3: When focus/selection is in body/editor, just using items of the formatting toolbar should never disable the same at any time.
- after step 4: close the dropdown (with focus if clicked), keep toolbar enabled, allow using any other formatting items
| Reporter | ||
Comment 4•6 years ago
|
||
This looks like a fallout from de-XBL/de-XUL where technical focus is now different from what it used to be (active element vs. focused part of that element), so TB wrongly believes that focus is NOT on body and NOT on formatting toolbar, which is conceptually wrong. As long as focus is on anything from formatting toolbar (like selector dropdowns), obviously the bar should be enabled to allow, well, formatting of the selected body text, including 0-length selection.
| Reporter | ||
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
Damn, how foolish of me to close this, it's totally visible, albeit not affecting usability. My apologies.
Alice, can you please find the regression for us. If the bug report is correct, somewhere at TB 67.
This is what I have investigated:
When clicking into compose body, the focusedwinow in CommandUpdate_MsgCompose() is "Window about:blank"
When clicking into recipients, the focusedwindow in CommandUpdate_MsgCompose() is "ChromeWindow chrome://messenger/content/messengercompose/messengercompose.xul"
The same value appears now also when clicking the "font" menulist. That is kinda understandable, we are in the composer UI, not the message body.
What this bug is about is actually to special-case the toolbar so that even if we are not in the message body, but are in the toolbar, it should not be disabled. The current code probably does not check where we clicked in the non-body window specifically so disables the toolbar unconditionally.
I haven't yet found which code disables the formatting toolbar.
But in updateComposeItems() (called from CommandUpdate_MsgCompose()) we call goUpdateCommand("cmd_renderedHTMLEnabler"); ("font" and other items on the toolbar observe this command) . And at that spot the command is disabled according to where we are focused in the UI.
The strange thing is, this command is handled by the editor code at https://searchfox.org/comm-central/source/editor/ui/composer/content/ComposerCommands.js#407, but only when we are in the message body. When outside it, something else handles and disables it.
Comment 7•6 years ago
|
||
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=66296c90046564a6b068ffdfe6bf92dc071464e8&tochange=9289d8a37eb2dae82f2ecc0076ec8396126a5526
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=88cfe9dfcb973c643cb2a2ce3a15262d3454c57c&tochange=e4e2245fc1428c33db179ca2f242b922ad988d79
| Assignee | ||
Comment 8•6 years ago
|
||
Thanks so much, Alice!
So this goes back about one year :-( - Nothing obvious, but it could be this:
Sriharsha sriharsh007jc — Bug 1484949 Remove obsolete .toolbar-focustarget styling r=dao
https://hg.mozilla.org/mozilla-central/rev/fab25a0a45fa9ea78b1fcf5a0a030bd2ee4980c8
Actually, I have a patch that fixes it.
| Assignee | ||
Comment 9•6 years ago
|
||
This fixes it.
Thank you so much once again, Alice. Without your work we would have been searching for a solution for days.
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
And maybe in the comment explain why it's needed instead of saying it was removed in ,,,,
| Assignee | ||
Comment 13•6 years ago
|
||
Well, what comment do you suggest? People can look up the bug where it was added. I don't claim to understand what that does, so I can't add a qualified comment here :-(
| Assignee | ||
Comment 14•6 years ago
|
||
I tried my best to come up with a useful comment.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Comment 15•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/768ececa54d4
Restore .toolbar-focustarget in messengercompose.css after removal in bug 1484949. r=Paenglab DONTBUILD
| Assignee | ||
Comment 16•6 years ago
|
||
TB 69 beta 3:
https://hg.mozilla.org/releases/comm-beta/rev/510a90a516e77db9a24322b56681dbd1884032e1
| Assignee | ||
Comment 17•6 years ago
|
||
| Assignee | ||
Comment 18•6 years ago
|
||
Working again in TB 68 ESR, thanks, Thomas!
Description
•