Closed Bug 1661552 Opened 4 years ago Closed 4 years ago

Sorting about:processes by Name sorts only the subitems

Categories

(Core :: DOM: Content Processes, defect, P3)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Fission Milestone M7
Tracking Status
firefox82 --- fixed

People

(Reporter: itiel_yn8, Assigned: Yoric)

References

Details

Attachments

(1 file)

STR:

  1. Open about:processes
  2. Click the Name column header once -- the separators are gone (not sure if intentionaly or not), and the top-level item names are not actually sorted
  3. Expand any top-level item and sort by name -- the subitems are being sorted, and not the top-level ones
Severity: -- → S3
Fission Milestone: --- → M7
Priority: -- → P3
Summary: Sorting by Name sorts only the subitems → Sorting about:processes by Name sorts only the subitems

Oh, right. That's going to be a bit tricky to solve.

Names used to be computed in aboutProcesses.js but they're now outsourced to Fluent.

So I see the following options:

  1. Compute the names twice, once for sorting and once for display.
  2. Adopt an approximation in which we actually sort by origin rather than by alphanumerical order.
  3. Call Fluent much earlier to determine names way before we need to display them (or before we even know whether we'll need to display them).

Sorting by name used to work because we computed the display name of each process within aboutProcesses.js. These days, fluent does the job, so this doesn't work anymore.

This patch approximates sorting by name with sorting by origin.

Assignee: nobody → dteller
Status: NEW → ASSIGNED
Pushed by dteller@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ac4c876a2e1d In about:processes, sorting by name now sorts by origin;r=florian
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: