Created attachment 527759 [details] [diff] [review]
Although it may be fine for all Mozilla products to call SetProcessDPIAware on xul.dll load, in embedding situation it may not be good as the rest of the process may be not DPI aware. The fix is as simple as moving the call to XRE_main, where other similar settings are done.
patching file toolkit/xre/nsAppRunner.cpp
Hunk #1 FAILED at 2775
1 out of 1 hunks FAILED -- saving rejects to file toolkit/xre/nsAppRunner.cpp.rej
patching file widget/src/windows/nsToolkit.cpp
Hunk #1 FAILED at 217
1 out of 1 hunks FAILED -- saving rejects to file widget/src/windows/nsToolkit.cpp.rej
Thanks for an attempt to commit it. I was planning to commit it myself, but my build environment is temporary broken. I will rebase and push once I will fix it.
Pushed to cedar: