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-05-02 16:44:12 +00:00
parent df51b8b141
commit 6c78db7df6
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -35,7 +35,7 @@ var test = function (isContent) {
["screen.orientation.type", "'landscape-primary'"], ["screen.orientation.type", "'landscape-primary'"],
["screen.orientation.angle", 0], ["screen.orientation.angle", 0],
["screen.mozOrientation", "'landscape-primary'"], ["screen.mozOrientation", "'landscape-primary'"],
["devicePixelRatio", 1], ["devicePixelRatio", 2],
]; ];
// checkPair: tests if members of pair [a, b] are equal when evaluated. // checkPair: tests if members of pair [a, b] are equal when evaluated.