Closed Bug 1554630 Opened 5 years ago Closed 5 years ago

[de-xbl] convert the tabmail-tabs binding

Categories

(Thunderbird :: Toolbars and Tabs, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 69.0

People

(Reporter: mkmelin, Assigned: aleca)

References

Details

Attachments

(3 files, 8 obsolete files)

(deleted), patch
Details | Diff | Splinter Review
(deleted), patch
jorgk-bmo
: review+
Details | Diff | Splinter Review
(deleted), patch
mkmelin
: review+
Details | Diff | Splinter Review

https://searchfox.org/comm-central/rev/5a670c59f9004ef9be4874cfbfe57ec2ef3b260f/mail/base/content/tabmail.xml#2015

I think there is no m-c bug for tabbrowser-tabs conversion yet - but will depend on bug 1514926.

tabbox.xml#tabs is going away in D32855 - bug 1555060

We may have to fork that binding temporarily.

Depends on: 1555060
Assignee: nobody → alessandro

Bug 1555060 almost landed.

Attached patch bug1554630_tabmail-tabs.patch (obsolete) (deleted) β€” β€” Splinter Review

This is start of the conversion. Didn't try it out yet (need to pull an rebuild), but at least <children> needs fixing. But there might be a lot...
(No time to look further atm.)

Blocks: 1562391
Attached patch bug1554630_tabmail-tabs.patch (WIP) (obsolete) (deleted) β€” β€” Splinter Review

Removing the binding and css to hook it up too.

Attachment #9074959 - Attachment is obsolete: true
Attached patch bug1554630_tabmail-tabs.patch (obsolete) (deleted) β€” β€” Splinter Review

Not finished, but at least the main UI shows up now, and as long as you stay in the one tab, thing seem to work. Tabbing doesn't (really) work. At least not getting back to what you tabbed from. Etc...

Instead of adding structure in connectedCallback, have it in the markup (like browser.xhtml).

Sent to try to see how bad the test failures are: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=ed8cba9af88bcc9c120fa799df981045bf867716

I'm not likely to be able to work on this until monday, so someone feel free to take over.

If the try looks half decent, it could potentially be landed to fix the bustage. I wouldn't expect very substantial changes to be needed, but of course all the details add up.

Thanks for taking care of this so quickly.
I'll continue from here starting from tomorrow.
Who do you want me to ping for reviews if you're not available?

Quickly? Bug 1555060 has been in the making for a month now, with reviews coming in since June 12th. Proactive would have been to have the patches ready here for immediate landing. Today we shipped a totally broken Daily, and as a sheriff I now need to conduct extra try runs with bug 1555060 backed out to see whether anything else is breaking while TB is completely hosed due to this :-(

EDIT: Besides, no one else can work unless they jump through hoops since Mozmill is completely orange.

Attached patch bug1554630_tabmail-tabs (aleca WIP).patch (obsolete) (deleted) β€” β€” Splinter Review

I'm sorry Jorgk, this situation is mostly my fault.
I got sidetracked by many other tasks and this one slipped away. I should have set a priority and reminders as soon as it was assigned to me. It won't happen again.

This is a WIP patch where the tabs are created in the right place and switching between tabs works.
Still, lots of errors and issues to find and fix.

I'll keep working on it.

Status: NEW → ASSIGNED
Attached patch bug1554630_tabmail-tabs (aleca WIP).patch (obsolete) (deleted) β€” β€” Splinter Review

More progress, getting real close.
The tabs are properly rendered and opened, switching between tabs fully works, and they can be closed with right click -> close.
I need to fix the missing close button and the drag&drop. I'll do a try push afterwards to fix all the mozmill tests.

Attachment #9074993 - Attachment is obsolete: true
Attached patch bug1554630_tabmail-tabs (aleca WIP).patch (obsolete) (deleted) β€” β€” Splinter Review

Here's my last WIP for today.
Everything should work as expected, and the majority of the tests should be fixed.

There's still a lot of clean up and optimization that needs to be done, and obviously a full review.

Attachment #9074995 - Attachment is obsolete: true
Attached patch bug1554630_tabmail-tabs (aleca WIP).patch (obsolete) (deleted) β€” β€” Splinter Review

wrong file...

Attachment #9075002 - Attachment is obsolete: true

Here's a try-push: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=a88707c2fff013dabd2491f1665615fd933a44d7
Lots of failures still, but a bit of green is coming back.
I will continue tomorrow.

More progress on fixing those tests.

Attachment #9075003 - Attachment is obsolete: true

When the tabs overflow, the alltabs button does not appear. When I unhide it through Inspector I see only three menuitems with undefined as text.

Latest try looks good, only failing Mozmill testTodayPane.js now with:
EXCEPTION: Expression "{"class":"agenda-container-box"}" returned null. Anonymous == true
on line 112. No idea how that relates to the tab changes. I'll switch it off for now. Maybe Geoff can fix it.

Flags: needinfo?(geoff)
Keywords: leave-open
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/99a134f08efe
convert the tabmail-tabs binding to custom element. rs=bustage-fix
https://hg.mozilla.org/comm-central/rev/68fe7b1e877f
disable testTodayPane.js. rs=bustage-fix

Thanks for fixing it up Alex! The path in testTodayPane.js just need to be adjusted since tab is now wrapped in an arrowscrollbox. I'll upload a patch soon.

Flags: needinfo?(geoff)

If you want something to land later...

Attachment #9075067 - Flags: review?(jorgk)

For other code changes (in general), should also add "is" in connectedCallback

Comment on attachment 9075067 [details] [diff] [review]
bug1554630_tabmail-tab_todaypanetestfix.patch

Thanks for patch. The I'm really the wrong guy to review this (given that I tried to fix this myself last night and failed), but it works, so let's take it.
Attachment #9075067 - Flags: review?(jorgk) → review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/0a4f2477de1d
ajust testTodayPane.js to account for tabmail-tab now being wrapped in an arrowscrollbox. r=jorgk DONTBUILD
Attachment #9074961 - Attachment is obsolete: true
Attachment #9074977 - Attachment is obsolete: true
Comment on attachment 9075028 [details] [diff] [review]
bug1554630_tabmail-tabs (aleca WIP).patch

Is there any review necessary on the main patch here?

Also note comment #14: "When the tabs overflow, the alltabs button does not appear. ..."
Flags: needinfo?(mkmelin+mozilla)

I'll take care of this today and fix the latest quirky issues.
I'll do a personal review and then ask for a full review to Magnus.

Blocks: 1562496
No longer blocks: 1562496
Attached patch bug1554630_tabmail-tabs_tabsoverflow.patch (obsolete) (deleted) β€” β€” Splinter Review

This fixes the tabs overflow toolbar button.

Attachment #9075217 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9075217 [details] [diff] [review]
bug1554630_tabmail-tabs_tabsoverflow.patch

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

I don't think this is correct. Looks like it was just copied over from suite/.
But e.g. there is no UpdatedScrollButtonsDisabledState event anywhere.
Attachment #9075217 - Flags: review?(mkmelin+mozilla) → review-

(In reply to Jorg K (GMT+2) from comment #22)

Is there any review necessary on the main patch here?

We both did parts, so let's call it reviewed.

Flags: needinfo?(mkmelin+mozilla)

I was wondering what the UpdatedScrollButtonsDisabledState was for.
The additions to the underflow and overflow events make the alltabs-button behave properly.
Also that part is incorrect?

Those look ok I think.

Attachment #9075217 - Attachment is obsolete: true
Attachment #9075227 - Flags: review?(mkmelin+mozilla)
Attachment #9075227 - Flags: review?(mkmelin+mozilla) → review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/66aa32e146d4
fix tab overflow for tambail-tab. r=mkmelin
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 69.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: