Closed Bug 1837667 Opened 1 year ago Closed 1 year ago

restore GetDpiForMonitor functionality for Win8 and newer machines from upstream commit 60795e8c7a

Categories

(Core :: WebRTC, task, P2)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: mjf, Assigned: ng)

References

Details

Attachments

(1 file)

Upstream commit broke our Win7 tests due to using ::GetDpiForMonitor which is only available on Win8 and newer machines. To unblock, we simply disabled that code and returned a default value. We should restore the functionality for newer machines.

Severity: -- → S3
Depends on: 1837647
Priority: -- → P2

It's available from win8.1 for which the NTDDI_VERSION macro has the value NTDDI_WINBLUE. Maybe we want a runtime check instead, then we can look at this. I found no equivalent in libwebrtc, the closest is this explicit check.

(In reply to Andreas Pehrson [:pehrsons] from comment #1)

It's available from win8.1 for which the NTDDI_VERSION macro has the value NTDDI_WINBLUE. Maybe we want a runtime check instead, then we can look at this. I found no equivalent in libwebrtc, the closest is this explicit check.

+1

A run time check would be great for binary portability.

Assignee: nobody → na-g
Status: NEW → ASSIGNED
Attachment #9338773 - Attachment description: Bug 1837667 - avoid calling GetDpiForMonitor on Windows < 8.1;r?mjf → Bug 1837667 - avoid calling GetDpiForMonitor on Windows < 8.1;r?mjf,pehrsons
Attachment #9338773 - Attachment description: Bug 1837667 - avoid calling GetDpiForMonitor on Windows < 8.1;r?mjf,pehrsons → Bug 1837667 - avoid calling GetDpiForMonitor on Windows < 8.1;r?mjf
Pushed by na-g@nostrum.com: https://hg.mozilla.org/integration/autoland/rev/1877c1e6db6f avoid calling GetDpiForMonitor on Windows < 8.1;r=mjf,webrtc-reviewers,pehrsons

Investigating.

Flags: needinfo?(na-g)
Attachment #9338773 - Attachment description: Bug 1837667 - avoid calling GetDpiForMonitor on Windows < 8.1;r?mjf → Bug 1837667 - avoid calling GetDpiForMonitor on Win32 or Win<8.1;r?mjf
Pushed by na-g@nostrum.com: https://hg.mozilla.org/integration/autoland/rev/efb1631077da avoid calling GetDpiForMonitor on Win32 or Win<8.1;r=mjf,webrtc-reviewers,pehrsons
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Blocks: 1845841
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: