Closed Bug 1957214 Opened 10 months ago Closed 6 months ago

Remove comment that is no longer accurate from Prompter.sys.mjs

Categories

(Toolkit :: Content Prompts, task)

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: gregp, Assigned: mason)

Details

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

Attachments

(1 file)

Prompter.sys.mjs used to create a temporary object (PromptUtilsTemp) that extended PromptUtils.

var PromptUtilsTemp = {
    ...some extra utility methods
};
Object.setPrototypeOf(PromptUtilsTemp, PromptUtils);

Then PromptUtils would be reassigned to this object.

PromptUtils = PromptUtilsTemp;

This mess was cleaned up in bug 1808172, so this comment is no longer accurate.

// This is redefined below, for strange and unfortunate reasons.
import { PromptUtils } from "resource://gre/modules/PromptUtils.sys.mjs";

To reduce confusion, the comment should be removed.

Hey, I'm new and will submit a patch for this soon

Assignee: nobody → mason
Attachment #9499007 - Attachment description: WIP: Bug 1957214 - Remove comment that is no longer accurate from Prompter.sys.mjs → Bug 1957214 - Remove inaccurate comment. r?mtigley!

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:mason, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(mtigley)
Flags: needinfo?(mason)

I have just landed this on Mason's behalf.

Flags: needinfo?(mtigley)
Flags: needinfo?(mason)
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: