Closed Bug 1404080 Opened 7 years ago Closed 7 years ago

Add dwBuildNumber and UBR to the Windows version in the app.update.url

Categories

(Toolkit :: Application Update, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

Details

Attachments

(1 file, 1 obsolete file)

https://dxr.mozilla.org/mozilla-central/source/toolkit/modules/UpdateUtils.jsm#362

The wServicePackMajor and wServicePackMinor values are included and we should add dwBuildNumber in case it is needed at some point.
Priority: -- → P2
Assignee: nobody → robert.strong.bugs
Status: NEW → ASSIGNED
I'm tempted to include the UBR just in case since it is trivial to include it and it can identify additional fixes that may be of interest.

https://technet.microsoft.com/en-us/windows/release-info
catlee, in relation to balrog would it be ok to also include the ubr for the build as well?
Flags: needinfo?(catlee)
I don't see why not. 302 to the expert though.
Flags: needinfo?(catlee) → needinfo?(bhearsum)
Sounds like this is just another number in the already long string of numbers in OS_VERSION? If so, I don't see any reason not to send it.
Flags: needinfo?(bhearsum)
Attached patch patch rev1 (obsolete) — Splinter Review
This only tries to add UBR when the Windows OS is 10 or greater. Here are a couple of examples
Windows_NT%2010.0.0.0.15063.608%20(x64)
Windows_NT%2010.0.0.0.15063.unknown%20(x64)
Comment on attachment 8914541 [details] [diff] [review]
patch rev1

Pushed to try
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4320ba073ee37f3648705a8ad09cfac2bc721420

I don't think the try / catch around the readRegkey is necessary but I forgot to remove it before submitting. I'll remove it after the review, etc.
Attachment #8914541 - Flags: review?(mhowell)
Attachment #8914541 - Flags: review?(mhowell) → review+
Summary: Add dwBuildNumber to the Windows version in the app.update.url → Add dwBuildNumber and UBR to the Windows version in the app.update.url
Pushed by rstrong@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f7942ddde813
Add dwBuildNumber and UBR to the Windows version in the OS_VERSION replacement for the app.update.url. r=mhowell
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/f7942ddde813
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: