Closed Bug 1786632 Opened 2 years ago Closed 2 years ago

AboutWelcome progress bar test fails for noninteger display scaling factors

Categories

(Firefox :: Messaging System, defect, P2)

Desktop
Windows 10
defect

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox106 --- wontfix
firefox107 --- fixed

People

(Reporter: aminomancer, Assigned: halemu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It's possible for the test test_aboutwelcome_with_progress_bar to fail if display scaling factor is not an integer. I assume there aren't already any try configurations to test for different scaling factors, or else there would be intermittent failure reports.

Basically it's testing the computed style for height: 6px, but it's possible that the computed style is actually height: 5.33px or something like that. The progress indicator has no inner height, but rather a 3px border. So, its height varies because the computed border width varies depending on the device pixels to CSS pixels ratio. (border is the only property with subpixel scaling)

That is Firefox's border subpixel rounding working as intended for 150% display scaling, but the tests don't account for it, so I had to delete them while I was debugging with that test file.

The trouble is it's impossible to know exactly how it's going to round, because it depends on the layout. You could check that it's within a range — for border-width: 3px on 2 sides, we should always get 7 > n > 5. But test_element_styles doesn't have a comparison option and that would be a bit complicated.

This isn't super important, but the only workarounds I know of are changing scaling factor or temporarily modifying/deleting the test. Changing the scaling factor on Windows 8 and 10 has some discouraging side effects that stick around until reboot (at least for me), so I tend to assiduously avoid it.

See Also: → 1783973
Priority: -- → P2

The severity field is not set for this bug.
:tspurway, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(tspurway)
Severity: -- → S3
Flags: needinfo?(tspurway)
Assignee: nobody → halemu
Attachment #9297841 - Attachment description: WIP: Bug 1786632 - AboutWelcome progress bar test fails for noninteger display scaling factors → Bug 1786632 - AboutWelcome progress bar test fails for noninteger display scaling factors r=mviar
Pushed by halemu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d545a5e72d6
AboutWelcome progress bar test fails for noninteger display scaling factors r=mviar
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch

The patch landed in nightly and beta is affected.
:halemu, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox106 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(halemu)
Flags: needinfo?(halemu)

No, an uplift is not needed for this. I've updated the flag. Thanks!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: