Closed Bug 1469902 Opened 3 years ago Closed 3 years ago

Migrate <tabbox> to a Custom Element

Categories

(Core :: XUL, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(1 file, 3 obsolete files)

This looks like a good candidate for Custom Element conversion: https://bgrins.github.io/xbl-analysis/tree/#tabbox

- bound to a single element (tabbox)
- no <content>
- no [implements]
Depends on: 1413418
Priority: -- → P3
MozReview-Commit-ID: HNDiMYmKgkg
Attachment #8986530 - Attachment is obsolete: true
Attachment #8986531 - Attachment is obsolete: true
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Arshad, there's one consumer in mail that extends the tabbox xbl binding. It looks like it only changes one property (`tabs`): https://searchfox.org/comm-central/rev/b0a715472ce3bfd64760f0091bddee2ac012434a/mail/base/content/tabmail.xml#1826

I'm fairly sure that could be achieved by setting the [tabcontainer] attribute on the DOM node that gets that binding attached (as per this getter https://searchfox.org/mozilla-central/rev/3fa761ade83ed0b8ab463acb057c2cf0b104689e/toolkit/content/widgets/tabbox.xml#44-46). If not, you should be able to set an expando property on the DOM node from JS (override node.tabs to be a getter that returns the right thing. Last option would be to port the current tabbox XBL binding over to comm-central and somehow avoid loading the Custom Element from toolkit/.
Flags: needinfo?(arshdkhn1)
Ok! I'll work on this tomorrow. Thanks for letting me know the possible approaches of conversion.
Flags: needinfo?(arshdkhn1)
In phab it still shows up as "This revision now requires changes to proceed." but I pushed an update to the patch which I thought would re-flag it for you. Marking needinfo to make sure it shows up on your radar.
Flags: needinfo?(dao+bmo)
Comment on attachment 9003177 [details]
Bug 1469902 - Migrate <tabbox> to a Custom Element;r=dao

Dão Gottwald [::dao] has approved the revision.
Attachment #9003177 - Flags: review+
Comment on attachment 9003189 [details]
Bug 1469902 - hg cp tabbox.xml -> tabbox.js to preserve blame

Dão Gottwald [::dao] has approved the revision.
Attachment #9003189 - Flags: review+
Flags: needinfo?(dao+bmo)
Attachment #9003177 - Attachment description: Bug 1469902 - Migrate <tabbox> to a Custom Element → Bug 1469902 - Migrate <tabbox> to a Custom Element;r=dao
Attachment #9003189 - Attachment is obsolete: true
Blocks: 1486845
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/373020acb086
Migrate <tabbox> to a Custom Element;r=dao
https://hg.mozilla.org/mozilla-central/rev/373020acb086
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Hmm, no tabs in Thunderbird any more and no warning :-(
(In reply to Jorg K (GMT+2) from comment #17)
> Hmm, no tabs in Thunderbird any more and no warning :-(

See comment 7.
(In reply to Tim Nguyen :ntim from comment #18)
> See comment 7.
Right, sorry. In the future please CC me and Richard as well.
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.