Closed Bug 1546336 Opened 6 years ago Closed 5 years ago

[de-xbl] remove the toolbar-menubar-autohide binding

Categories

(Thunderbird :: Toolbars and Tabs, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 70.0

People

(Reporter: mkmelin, Assigned: khushil324)

References

Details

Attachments

(2 files, 5 obsolete files)

Assignee: nobody → khushil324
Attachment #9072505 - Flags: review?(mkmelin+mozilla)
Status: NEW → ASSIGNED
Comment on attachment 9072505 [details] [diff] [review]
Bug-1546336_de-xbl_toolbar-menubar-autohide.patch

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

The build complains about there no longer being any preprocessing in the bindings.css file. So you should remove the star from https://searchfox.org/comm-central/source/mail/base/jar.mn#43 (which means preprocess this file)

Can we put the file in mail/base/content/messenger-customization.js to match up with firefox?

Doesn't seem to work though. If I right click the toolbar and uncheck the menu bar, the menu bar still shows. That's what this binding is about, isn't it?
Attachment #9072505 - Flags: review?(mkmelin+mozilla)

(In reply to Magnus Melin [:mkmelin] from comment #2)

The build complains about there no longer being any preprocessing in the
bindings.css file. So you should remove the star from
https://searchfox.org/comm-central/source/mail/base/jar.mn#43 (which means
preprocess this file)

Okay, Cool.

Can we put the file in mail/base/content/messenger-customization.js to match
up with firefox?

Yeah, sure.

Doesn't seem to work though. If I right click the toolbar and uncheck the
menu bar, the menu bar still shows. That's what this binding is about, isn't
it?

Yes, I checked on Linux Machine and it was working. I will check again.

Attachment #9072505 - Attachment is obsolete: true
Attachment #9072808 - Flags: review?(mkmelin+mozilla)
Attachment #9072808 - Flags: review?(mkmelin+mozilla) → review-
Comment on attachment 9072808 [details] [diff] [review]
Bug-1546336_de-xbl_toolbar-menubar-autohide.patch

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

The code looks ok but hiding/showing the menu toolbar doesn't work on linux at least.
Attachment #9072808 - Attachment is obsolete: true
Attachment #9072988 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9072988 [details] [diff] [review]
Bug-1546336_dexbl_toolbar-menubar-autohide.patch

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

Works now, thx! r=mkmelin assuming the tests are happy

::: mail/base/content/messenger-customization.js
@@ +26,5 @@
> +      this.contextMenu = document.getElementById(contextMenuId);
> +      this.contextMenu.addEventListener("popupshown", this);
> +      this.contextMenu.addEventListener("popuphiding", this);
> +      AutoHideMenubar._node.addEventListener("mousemove", this);
> +    },

nit: please add an empty line between the functions here
Attachment #9072988 - Flags: review?(mkmelin+mozilla) → review+
Attachment #9072988 - Attachment is obsolete: true
Attachment #9073002 - Flags: review+
Keywords: checkin-needed

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/e0efa65d3901
[de-xbl] remove the toolbar-menubar-autohide binding. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 69.0
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/d49c04d9b70e
bug 1546340 (merge conflict) - Follow-up: toolbar.xml doesn't need pre-processing. r=me
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/8c4083db9028
Backed out changesets e0efa65d3901 and d49c04d9b70e for test failures on Windows. a=backout

It was pretty clear that this functionality was running on Windows, yet, you never did a try run on Windows :-(

The failures first showed up after landing this:
https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=d49c04d9b70e7493bd5c6938b5045ead17659a59

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

That's a backout of the backout which gives you a rebased patch to start from.

Attachment #9073002 - Attachment is obsolete: true
Attachment #9077316 - Flags: review+
Keywords: checkin-needed

This still fails locally on Windows:
mozmake SOLO_TEST=message-window/test-autohide-menubar.js mozmill-one
and you didn't include Windows in your try :-(

Keywords: checkin-needed
Comment on attachment 9077433 [details] [diff] [review]
Bug-1546336_de-xbl_toolbar-menubar-autohide.patch

This works now, I'll land it later.
Attachment #9077433 - Flags: feedback?(jorgk) → feedback+

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/4f80c9138a49
[de-xbl] remove the toolbar-menubar-autohide binding. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: Thunderbird 69.0 → Thunderbird 70.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: