Closed Bug 2077049 Opened 2 months ago Closed 2 months ago

Document address bar utility modules that content-process code can import

Categories

(Firefox :: Address Bar, task)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: dao, Assigned: dao)

References

Details

(Whiteboard: [sng][mcab-hnt-followon])

Attachments

(2 external files)

docs/utilities.md covers only UrlbarPrefs and UrlbarUtils, and still says UrlbarUtils holds the constants shared across the components. Those constants and many helpers moved to UrlbarShared.mjs, which can be imported into both system and content realms. overview.md and dynamic-result-types.md already use UrlbarShared.RESULT_TYPE and UrlbarShared.HIGHLIGHT without introducing it.

The page should document UrlbarShared.mjs (no window, per-realm state), UrlbarContentPrefs.mjs (where content code imports prefs from) and UrlbarContentUtils.mjs, and narrow the UrlbarUtils entry to the parent-only helpers, so an author can tell which module a new helper belongs in.

Whiteboard: [sng][mcab-hnt-followon]
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/23cbe95b74f2 https://hg.mozilla.org/mozilla-central/rev/56fce97d14bb Document address bar utility modules that content-process code can import. r=mbeier,urlbar-reviewers DONTBUILD https://github.com/mozilla-firefox/firefox/commit/e0d594731803 https://hg.mozilla.org/mozilla-central/rev/3e9700f2e6f1 Make UrlbarContentUtils a class so its docs can be generated from the source. r=mbeier,urlbar-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
QA Whiteboard: [search][qa-triage-done-c159/b158]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: