Closed Bug 2066478 Opened 14 days ago Closed 11 days ago

Update comments that point at the removed openUILinkIn function

Categories

(Firefox :: Address Bar, task)

task

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: dao, Assigned: blessedonekobo, Mentored)

Details

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

Attachments

(1 file)

Filing as a good first bug to learn workflows.

There is no openUILinkIn function any more, but six comments still send the reader there for the list of supported parameters. The function that takes those parameters today is URILoadingHelper.openLinkIn, exposed on a browser window as openLinkIn; openUILink is the variant that derives where to open from an event's modifiers.

Each of those comments should name the function the surrounding code actually calls, and point at browser/modules/URILoadingHelper.sys.mjs, which is where the parameters are documented.

The comments to update are in four files, and this search lists them:
https://searchfox.org/firefox-main/search?q=openUILinkIn&case=false&path=

  • browser/components/urlbar/content/UrlbarInputBase.mjs
  • browser/components/urlbar/content/SmartbarInput.mjs
  • browser/actors/ContentSearchParent.sys.mjs
  • devtools/client/shared/link.js (three of them)

Or from a checkout:

rg openUILinkIn browser/ devtools/

To verify the fix, that same command should report nothing. Two further mentions are out of scope: a test manifest tag in browser/components/sessionstore/test/browser.toml, and a comment in toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/index.md.

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

Please do not ask for the bug to be assigned. It will be automatically assigned to the first patch.

The Bugbug bot thinks this bug should belong to the 'Firefox::Address Bar' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Address Bar

There is no openUILinkIn function any more, but six comments still send the reader there
for the list of supported parameters. The function that takes those parameters today is
URILoadingHelper.openLinkIn, exposed on a browser window as openLinkIn; openUILink is
the variant that derives where to open from an event's modifiers.

Assignee: nobody → blessedonekobo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a8e25fc925a2 https://hg.mozilla.org/integration/autoland/rev/45c0f30ef679 Remove stale references to openUILinkIn in comments. r=urlbar-reviewers,devtools-reviewers,ochameau,dao DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
QA Whiteboard: [search][qa-triage-done-c157/b156]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: