Closed Bug 1554399 Opened 6 years ago Closed 1 year ago

incorrect media sort by size in view page info

Categories

(Firefox :: Page Info Window, defect, P3)

67 Branch
Desktop
All
defect

Tracking

()

VERIFIED FIXED
128 Branch
Tracking Status
firefox-esr60 --- unaffected
firefox-esr115 --- wontfix
firefox67 --- wontfix
firefox67.0.1 --- wontfix
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- wontfix
firefox126 --- wontfix
firefox127 --- wontfix
firefox128 --- verified
firefox129 --- verified

People

(Reporter: ripaemilian, Assigned: florian)

References

(Regression)

Details

(Keywords: regression)

Attachments

(5 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

  1. open some page
  2. open context menu > view page info > media
  3. try to sort by size several times

Actual results:

  1. not every click sorts column
  2. incorrect sort order

example (67.0):
(gif) https://gfycat.com/ru/flickeringvaguebovine

Expected results:

Media content correctly sorted by size.

example (66.0):
(gif) https://gfycat.com/uncomfortablescrawnyamethystgemclam

Component: Untriaged → Page Info Window

I can reproduce the issue on Nightly69.0a1 Windows10.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=0a4aefb36aff504e179121c8de0039c0df9e8106&tochange=03aece6cda47ff158485d986e19ba230ea4c8834

Regressed by:
03aece6cda47ff158485d986e19ba230ea4c8834 Christian Frey — Bug 1517493 - migrated pageInfo.dtd and pageInfo.properties to pageInfo.ftl r=jaws,flod,Gijs

Chris Frey,
Your patch seems to cause the regression. Can you please look into this?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(freychr3)
Keywords: regression
OS: Unspecified → All
Regressed by: 1517493
Hardware: Unspecified → Desktop
QA Whiteboard: [qa-regression-triage]

Thanks for the report!

I can reproduce both problems on my machine.

  • clicking doesn't work sometimes
  • Sorting order is wrong

Honza

Priority: -- → P3

This is broken because https://searchfox.org/mozilla-central/rev/f91bd38732d4a330eba4e780812274b98eb81274/browser/base/content/pageinfo/pageInfo.js#185-186 expects to be comparing numbers, but the change at https://hg.mozilla.org/mozilla-central/rev/03aece6cda47#l1.204 from bug 1517493 changed the addImage function to make it format and localize file sizes into strings eagerly.

Also have the sorting issue in the view properties > image

Windows 7, 64 bit SP1
Firefox Quantum 68.0 (64-bit)

I seemed to see an inference to a possible fix for this version of firefox, but could not locate it. Anyone have a link to this fix (if it exists)?

Problem persists in 68.0.1 (64-bit).

Any proposed fix, or barring that, any known workarounds?

Adding needinfo on Jared who participated in bug 1517493.

Flags: needinfo?(jaws)
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Flags: needinfo?(jaws)
Flags: needinfo?(freychr3)

This is safe because we only display the sizes as kb so we don't have to worry about comparing different units.

QA Whiteboard: [qa-regression-triage]

I won't be able to continue with this bug as I'm going on extended leave.

Assignee: jaws → nobody
Status: ASSIGNED → NEW
Attachment #9083535 - Attachment is obsolete: true

Happy to take a patch for 70 or beyond.
Since we are getting close to the end of the 69 beta cycle and this is set to P3, I'm marking it fix-optional for 69 and 70 to remove it from weekly triage.

In FF71 this bug is still existant.

Still not sorting correctly in Windows and Linux with Firefox 76.0.1

How does this bug still exist over a year later?

Firefox 82.0 64bits / Windows 10 Home 1909 (18363.1139)

Still present in FF 88.0. Writing this comment in hopes that the bug gets some attention from the developers.

Has Regression Range: --- → yes
Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 4 duplicates.
:florian, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(florian)
Flags: needinfo?(florian)
Assignee: nobody → florian
Status: NEW → ASSIGNED
See Also: → 1897524
Pushed by fqueze@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb65f51be37a sort media files by size in page info by comparing the raw sizes rather than the localized strings, r=cmkm.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Flags: qe-verify+

Issue is reproducible on a 2024-05-15 Nightly build on Windows 10.
Verified as fixed on Firefox 128.0b3 and Firefox Nightly 129.0a1 on Windows 10, Ubuntu 22, macOS 14.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Duplicate of this bug: 1906834
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: