[de-xbl] convert the tabmail binding
Categories
(Thunderbird :: General, task)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: aleca)
References
Details
Attachments
(1 file, 5 obsolete files)
|
144.17 KB,
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
FIrefox re-did this a long time ago in bug 1392352. https://hg.mozilla.org/mozilla-central/rev/d5be59a9f5fb
It should be mostly in tabbrowser.js now - https://searchfox.org/comm-central/source/mozilla/browser/base/content/tabbrowser.js
Unclear if we want to semi-copy that or convert the current binding to custom element.
| Reporter | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
Here's a first draft of this patch.
It almost works with our tabs system working via customElement.
Still, some errors to take care of, code cleanup, and some bugs caused on the first group of toolbarbuttons that turn out disabled.
I'm asking a quick feedback on this as I'm having some difficulties in understanding how the custom interfaces are implemented, and how/why the _callTabListeners() method is used instead of regular event listeners.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
I'm making progress here and I think I figured out how to properly implement controllers and listeners.
I'll upload a new patch for feedback soon.
| Assignee | ||
Comment 3•6 years ago
|
||
And I'm stuck again.
I'm having issues in implementing the progressListener, and I'm starting to wonder if maybe what's on m-c is a better approach to this.
| Reporter | ||
Comment 4•6 years ago
|
||
This seems to help.
| Reporter | ||
Comment 5•6 years ago
|
||
| Assignee | ||
Comment 6•6 years ago
|
||
Thanks for the helper patch, I keep forgetting to use the arrow function when implementing interfaces. I'll remember some day.
I updated the patch, used hg mv to preserve history, and fixed other things.
Everything seems to work now, and I just launched a push to try to see how many red flags we get.
Let me know what you think, if this approach is good or I should start a separated patch to copy what's on m-c.
| Assignee | ||
Comment 7•6 years ago
|
||
Some spaces and indentation fixes.
| Assignee | ||
Comment 8•6 years ago
|
||
| Reporter | ||
Comment 9•6 years ago
|
||
| Assignee | ||
Comment 10•6 years ago
|
||
Longer term I think we just need to align with firefox, but I think we can leave it for now
Agree as this moves forward the de-xbl effort and shouldn't introduce any regression.
The conversion to what FF did can be done in a follow up bug.
| Assignee | ||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/16c3cbd61751
[de-xbl] convert the tabmail binding to a custom element. r=mkmelin
Updated•6 years ago
|
Description
•