Closed Bug 1708010 Opened 4 years ago Closed 4 years ago

temperature conversion in addressbar/urlbar wrong, e.g. °C (Celsius) to °F (Fahrenheit) uses wrong formula

Categories

(Firefox :: Address Bar, defect)

defect

Tracking

()

VERIFIED FIXED
90 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox88 --- unaffected
firefox89 --- unaffected
firefox90 --- verified

People

(Reporter: aryx, Assigned: aryx)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

[Tracking Requested - why for this release]:
Wrong temperature conversion in new feature for en-US.

Steps to reproduce:

  1. Set browser.urlbar.suggest.calculator to true.
  2. Type this into the address bar: 30C in F

Actual result: 111.6°F
Expected result: 86°F

Reason for the difference:
The formula is T[C] * 1.8 + 32. Firefox uses (T[C] + 32) * 1.8.

Assignee: nobody → aryx.bugmail
Status: NEW → ASSIGNED

Thanks for noticing and patching, but this doesn't need to track. The unit converter is experimentally enabled only on Nightly, and we don't have plans to enable it more broadly any time soon. I'll take the triage owner's prerogative and cancel the request.

Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/6f26f291d34b fix temperature conversion from Celsius to Fahrenheit. r=daisuke
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch

verified fix on WIndows10, ubuntu 20 and Mac 10.15
with release 89, beta 90.0b1 and Nightly 91.0a1

in all cases urlbar showed 86

Status: RESOLVED → VERIFIED
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: