Closed Bug 2065041 Opened 3 months ago Closed 2 months ago

Replace the UrlbarQueryContext lifetime diagram image with an inline mermaid diagram

Categories

(Firefox :: Address Bar, task, P2)

task

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: dao, Assigned: dao)

References

Details

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

Attachments

(2 external files)

browser/components/urlbar/docs/lifetime.md illustrates the query walkthrough with a checked-in PNG (assets/lifetime/lifetime.png). It can't be diffed or reviewed as source, and it has already gone stale: it shows a single UrlbarController, while the prose around it describes the UrlbarChildController/UrlbarParentController split.

Replace it with an inline {mermaid} flowchart whose arrows carry the numbered steps of the walkthrough and whose boxes are grouped by where the components live, then delete the PNG.

Fixes for the text above the diagram, in the same pass:

  • "This document is current as of April 2023" predates the controller split.
  • Step 7 reads "A timer fires on an internal" - that is the chunk timer (UrlbarProvidersManager.chunkResultsDelayMs, 16ms by default), firing at an interval.
  • The searchfox links are pinned three different ways: mozilla-central at the April 2023 revision (steps 4, 5, 7, 8, 10), firefox-main at a recent revision (steps 1, 2, 11), and file-only links with no line number (steps 2, 3, 11). Bug 2054801 refreshed some of them; the rest still land the reader on 2023 code.
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [sng][mcab-hnt] → [sng][mcab-hnt-followon]
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/32f9213de56b https://hg.mozilla.org/integration/autoland/rev/ff81a71f48e2 Replace the UrlbarQueryContext lifetime diagram image with an inline mermaid diagram. r=mak,urlbar-reviewers https://github.com/mozilla-firefox/firefox/commit/dfb8e07d3005 https://hg.mozilla.org/integration/autoland/rev/148e807a9053 Fix stale links, the date stamp and a typo in the search lifecycle walkthrough. r=mak,urlbar-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
Blocks: 2070133
QA Whiteboard: [qa-triage-done-c158/b157]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: