Hide the self-named member on the address bar controller API reference pages
Categories
(Firefox :: Address Bar, task, P5)
Tracking
()
| 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: UrlbarChildControllerbrowser/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.
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 1•27 days ago
|
||
Updated•27 days ago
|
Comment 3•27 days ago
|
||
| bugherder | ||
Updated•26 days ago
|
Description
•