Tutorial on making native/builtin custom element in Firefox?

Is there any guide on making a custom native/built in element for Firefox?

I’m not talking about JavaScript Custom Elements, but forking the Firefox code, and adding a native (“builtin”) custom element.