Closed Bug 2078650 Opened 1 month ago Closed 27 days ago

Hide the self-named member on the address bar controller API reference pages

Categories

(Firefox :: Address Bar, task, P5)

task

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: dao, Assigned: mkolodziej, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=md][sng])

Attachments

(1 external file)

Filing as a good first bug to learn workflows.

The API reference pages for UrlbarChildController and UrlbarParentController list a member with the class's own name (UrlbarChildController.UrlbarChildController and UrlbarParentController.UrlbarParentController). The member does not exist in the code: jsdoc creates it for the this.#x = ... assignments in the constructor. UrlbarParentController's page also lists _lastAutofillReintegrationPromise, and the address bar docs keep _-prefixed members off their pages.

Add an :exclude-members: line under :members: in each page's js:autoclass block:

  • browser/components/urlbar/docs/UrlbarChildController.md: :exclude-members: UrlbarChildController
  • browser/components/urlbar/docs/UrlbarParentController.md: :exclude-members: UrlbarParentController, _lastAutofillReintegrationPromise

UrlbarView.md shows the same fix:
https://searchfox.org/firefox-main/rev/9de2c06fb839d60a8af0319f63c46e34a28e1fc9/browser/components/urlbar/docs/UrlbarView.md#3

Link to the code:
https://searchfox.org/firefox-main/rev/9de2c06fb839d60a8af0319f63c46e34a28e1fc9/browser/components/urlbar/docs/UrlbarChildController.md#3
https://searchfox.org/firefox-main/rev/9de2c06fb839d60a8af0319f63c46e34a28e1fc9/browser/components/urlbar/docs/UrlbarParentController.md#3

Current pages:
https://firefox-source-docs.mozilla.org/browser/urlbar/UrlbarChildController.html
https://firefox-source-docs.mozilla.org/browser/urlbar/UrlbarParentController.html

To verify the fix:

./mach doc browser/components/urlbar/docs --no-serve --no-open

Then open the two pages in the build output and check that neither lists the excluded members, and that the rest of the members are still there.

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Severity: -- → N/A
Priority: -- → P5
Whiteboard: [lang=md] → [lang=md][sng]
Assignee: nobody → mkolodziej
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2b184f2af86c https://hg.mozilla.org/integration/autoland/rev/60cc99a275d7 Hide the self-named and _-prefixed members on the address bar API reference pages. r=urlbar-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [search][qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: