From a479e3fa593b79cf9ddcf3199c92afe3051036f7 Mon Sep 17 00:00:00 2001 From: cypherpunks1 <2478-cypherpunks1@gitlab.torproject.org> Date: Mon, 29 Apr 2024 16:44:24 +0000 Subject: [PATCH] Bug 1554751 - Change the RFP value of devicePixelRatio to 2. r=gfx-reviewers,nical Differential Revision: https://phabricator.services.mozilla.com/D207834 --- dom/base/nsGlobalWindowInner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/nsGlobalWindowInner.cpp b/dom/base/nsGlobalWindowInner.cpp index e9c040a36d1f..c7490b9b9890 100644 --- a/dom/base/nsGlobalWindowInner.cpp +++ b/dom/base/nsGlobalWindowInner.cpp @@ -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; } }