gecko-dev/toolkit/components/contextualidentity
Andrew Swan f1d137eff5 Bug 1555060 Stop using dom structure for <tabs>/<tab> relationships
A bunch of existing code assumes that <tab> elements are the immediate
and only children of a <tabs> element, and uses dom apis to traverse
relationships between these elements.  To simplify conversion of <tabs>
to a custom element (and hopefully improve readability a bit at the same
time!), introduce new apis:

On <tab>
this.parentNode -> this.container
this.nextElementSibling -> this.container.findNextTab(...)
this.previousElementSibiling -> this.container.findNextTab(...)

On <tabs>
this.children -> this.allTabs

Differential Revision: https://phabricator.services.mozilla.com/D34648

--HG--
extra : source : f4e21e465f384b90fa1e768141c4db708748bf66
extra : histedit_source : 95d8a4242e8e04df9e29c2b647558d37e910b845
2019-06-11 14:49:46 -07:00
..
tests/unit Bug 1554464 - Merge nsICookie2 and nsICookie in 1 single interface, r=Ehsan 2019-05-31 09:36:44 +00:00
ContextualIdentityService.jsm Bug 1555060 Stop using dom structure for <tabs>/<tab> relationships 2019-06-11 14:49:46 -07:00
moz.build