restore GetDpiForMonitor functionality for Win8 and newer machines from upstream commit 60795e8c7a
Categories
(Core :: WebRTC, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox116 | --- | fixed |
People
(Reporter: mjf, Assigned: ng)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
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.
Reporter | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
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.
Assignee | ||
Comment 2•1 year ago
|
||
(In reply to Andreas Pehrson [:pehrsons] from comment #1)
It's available from win8.1 for which the
NTDDI_VERSION
macro has the valueNTDDI_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 | ||
Comment 3•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•1 year ago
|
||
Backed out for causing windows crashes.
Failure logs:
- https://treeherder.mozilla.org/logviewer?job_id=420013777&repo=autoland
- https://treeherder.mozilla.org/logviewer?job_id=420013759&repo=autoland
- https://treeherder.mozilla.org/logviewer?job_id=420012387&repo=autoland
- https://treeherder.mozilla.org/logviewer?job_id=420012373&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/bdf8893a3dfdac6fe0ad445625a24e6d18e89fda
Updated•1 year ago
|
Comment 8•1 year ago
|
||
bugherder |
Description
•