Bug 1554751 - Change the RFP value of devicePixelRatio to 2. r=gfx-reviewers,nical

Differential Revision: https://phabricator.services.mozilla.com/D207834
This commit is contained in:
cypherpunks1 2024-04-29 16:44:24 +00:00
parent 320a8c9112
commit a479e3fa59

View file

@ -3513,7 +3513,7 @@ double nsGlobalWindowInner::GetDevicePixelRatio(CallerType aCallerType,
nsAutoCString origin;
nsresult rv = this->GetPrincipal()->GetOrigin(origin);
if (NS_FAILED(rv) || origin != "resource://pdf.js"_ns) {
return 1.0;
return 2.0;
}
}