commit 9700371b499e86864dfd7f80ca560741eb2e80ab
parent fd7ba824dc9f1dd2222a86348f0249da777cacf8
Author: Alexandra Borovova <aborovova@mozilla.com>
Date: Wed, 26 Nov 2025 08:17:43 +0000
Bug 1706066 - Always use maxTouchPointsOverride for top level browsing context. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D273973
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dom/base/Navigator.cpp b/dom/base/Navigator.cpp
@@ -892,8 +892,8 @@ uint32_t Navigator::MaxTouchPoints(CallerType aCallerType) {
// Responsive Design Mode overrides the maxTouchPoints property when
// touch simulation is enabled.
- if (bc && bc->InRDMPane()) {
- return bc->GetMaxTouchPointsOverride();
+ if (bc && bc->Top()->InRDMPane()) {
+ return bc->Top()->GetMaxTouchPointsOverride();
}
// The maxTouchPoints is going to reveal the detail of users' hardware. So,