Correcting the scope of this bug: the two comments above cover only the telemetry-and-provider registration, which is one stage of the job. What is actually undocumented is how to add a new search surface -- a search bar a user types into -- end to end. The MCAB HNT roadmap is a worked example of the whole thing, and the stages below are where the reusable knowledge sits. Each is a place where the failure is confusing rather than the work being hard.
Hosting the element. Where the surface lives decides most of the rest. For a surface in a page, the address bar's actor has to be scoped to that page and to a privileged remote type, never a web content process. The actor's child also needs to exist before page script runs, because a content-realm input reads its port synchronously as it connects and cannot create the actor itself. Register through whatever extension point the host page offers rather than editing the host: if the host admits only one component of a kind, the supersede is two-sided and both sides must read the same gate and re-register when it changes, or a flip leaves the page with no search bar at all.
Localization. The element's strings span several Fluent files, including one for the result-group labels the view renders. A missing required file does not degrade one string -- it drops the whole document to en-US, so the symptom points nowhere near the cause.
Gating and release safety. The <feature>.featureGate convention, defaulting off on every channel so in-development code can ride the trains, with entries in both the urlbar pref defaults and firefox.js, read through UrlbarPrefs so a Nimbus variable can override it later. Then the staged rollout: a build-time Nightly-on flip, and a Nimbus variable with a fallbackPref for the ramp to release.
Registering the access point. The telemetry and provider work in the comments above.
Navigation and focus semantics. Where a picked result loads (same tab, or a new one under modifiers), what focuses the bar and what happens to focus when it is dismissed, and what a backgrounded tab mid-query records. The one with teeth: if picking a result unloads the document the surface lives in, a fire-and-forget engagement can be lost to teardown, so recording has to be parent-driven and atomic with the navigation rather than sent from the surface.
Styling. The stylesheets have to reach the surface's document, which for a content document means linking them and relying on the packages being content-accessible -- and a node-initiated load of the same package is still refused, which is why result icons need separate handling. The results overlay needs to reach the top layer; outside a chrome window there is no toolbar to ask, so the popover attribute is what answers it. Sizing to the host's slot, and the insets that implies, is its own piece.
Tests. A dedicated suite, plus the two traps that make a content-realm failure look like nothing happening: a preloaded host page breaks the ordinary way of opening a page in a test, and an exception inside the page reports through a channel the test log never sees.
Suggested shape, given the size: one page on adding a search surface that sequences these stages and links out, with the access-point registration checklist from the comments above as its own section.