Closed Bug 1508236 Opened 6 years ago Closed 6 years ago

remove broadcasters from mail/components/compose

Categories

(Thunderbird :: Message Compose Window, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 65.0

People

(Reporter: mkmelin, Assigned: mkmelin)

References

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1489447 +++

Remove <broadcaster> from mail/components/compose
No longer depends on: 1508233
The <broadcaster id="args" value="editorType=default"/> I don't know what's it about. Seems fine without it...

I moved the functional per-platform stylings to the shared folder, and renamed the .css file at the same time (overlay is silly now).

https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=c8693bbe868b6ab639b4a2caad9438dc56bcb7ec
Attachment #9026367 - Flags: review?(jorgk)
Comment on attachment 9026367 [details] [diff] [review]
bug1508236_de_broadcaster_compose.patch

Review of attachment 9026367 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, the toggling of Contacts sidebar seems to work.
I'd like Paenglab to check the css changes.
Also you remove style for signing="notok" and crypto="notok", what is the replacement?

::: mail/components/compose/content/MsgComposeCommands.js
@@ +6226,5 @@
>    if (sidebarBox.hidden) {
>      // Show contacts sidebar.
>      sidebarBox.hidden = false;
>      sidebarSplitter.hidden = false;
> +    document.getElementById("menu_AddressSidebar").setAttribute("checked", "true");

Make a variable for document.getElementById("menu_AddressSidebar"), as the other elements have.

@@ +6228,5 @@
>      sidebarBox.hidden = false;
>      sidebarSplitter.hidden = false;
> +    document.getElementById("menu_AddressSidebar").setAttribute("checked", "true");
> +    if (document.getElementById("button-contacts")) {
> +      document.getElementById("button-contacts").disabled = true;

document.getElementById("button-contacts") is used 4x you could make a variable for it, as the other elements have.
Attachment #9026367 - Flags: ui-review?(richard.marti)
Attachment #9026367 - Flags: review?(jorgk)
Attachment #9026367 - Flags: review+
Comment on attachment 9026367 [details] [diff] [review]
bug1508236_de_broadcaster_compose.patch

Review of attachment 9026367 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/components/compose/content/MsgComposeCommands.js
@@ +6226,5 @@
>    if (sidebarBox.hidden) {
>      // Show contacts sidebar.
>      sidebarBox.hidden = false;
>      sidebarSplitter.hidden = false;
> +    document.getElementById("menu_AddressSidebar").setAttribute("checked", "true");

Make a variable for document.getElementById("menu_AddressSidebar"), as the other elements have.

@@ +6228,5 @@
>      sidebarBox.hidden = false;
>      sidebarSplitter.hidden = false;
> +    document.getElementById("menu_AddressSidebar").setAttribute("checked", "true");
> +    if (document.getElementById("button-contacts")) {
> +      document.getElementById("button-contacts").disabled = true;

document.getElementById("button-contacts") is used 4x you could make a variable for it, as the other elements have.

::: mail/components/compose/content/messengercompose.xul
@@ +1005,5 @@
>            <menuitem id="menu_AddressSidebar"
>                      label="&addressSidebar.label;" accesskey="&addressSidebar.accesskey;"
> +                    type="checkbox"
> +                    key="key_addressSidebar"
> +                    oncommand="toggleAddressPicker();"/>

Why not migrating the "autoCheck" ?
Comment on attachment 9026367 [details] [diff] [review]
bug1508236_de_broadcaster_compose.patch

Review of attachment 9026367 [details] [diff] [review]:
-----------------------------------------------------------------

Actually, it seems this has also lost 'checked' on 'button-contacts' which made a depressed effect when the sidebar was open. I thought that removal was intentional and the attribute unused, but it does not seem so. Also, it was possible to click the button again to close the sidebar, which feature you also dropped.
Attachment #9026367 - Flags: review+
Comment on attachment 9026367 [details] [diff] [review]
bug1508236_de_broadcaster_compose.patch

Yes, the deactivating of the "Contacts" button is unusual because then it's not possible to hide the sidebar again with the button. Checked is a better feedback than disabled.
Attachment #9026367 - Flags: ui-review?(richard.marti) → ui-review-
(In reply to :aceman from comment #2)
> Also you remove style for signing="notok" and crypto="notok", what is the
> replacement?

They were never set to that (during composition) which this css covers. During composition all that the icons in the status bar display is really whether you have chosen that you will encrypt and/or sign.
Attachment #9026367 - Attachment is obsolete: true
Attachment #9027699 - Flags: review?(acelists)
Comment on attachment 9027699 [details] [diff] [review]
bug1508236_de_broadcaster_compose.patch

Review of attachment 9027699 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks.
Attachment #9027699 - Flags: review?(acelists) → review+
Keywords: checkin-needed
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/fbf6d186a18a
Remove broadcasters from mail/components/compose. r=aceman
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 65.0
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: