mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 07:02:03 -08:00
Fix headless leak #26 beta.11
Forces the default pointer value to a mouse-type pointer, fixing the detection issues on headless browsers.
This commit is contained in:
parent
bd59304481
commit
49cea6eca8
2 changed files with 32 additions and 1 deletions
31
patches/force-default-pointer.patch
Normal file
31
patches/force-default-pointer.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
diff --git a/layout/style/nsMediaFeatures.cpp b/layout/style/nsMediaFeatures.cpp
|
||||||
|
index cc86d1abf6..bfc4d0f1d8 100644
|
||||||
|
--- a/layout/style/nsMediaFeatures.cpp
|
||||||
|
+++ b/layout/style/nsMediaFeatures.cpp
|
||||||
|
@@ -372,24 +372,10 @@ static PointerCapabilities GetPointerCapabilities(const Document* aDocument,
|
||||||
|
|
||||||
|
// The default value for Desktop is mouse-type pointer, and for Android
|
||||||
|
// a coarse pointer.
|
||||||
|
- const PointerCapabilities kDefaultCapabilities =
|
||||||
|
#ifdef ANDROID
|
||||||
|
- PointerCapabilities::Coarse;
|
||||||
|
-#else
|
||||||
|
- PointerCapabilities::Fine | PointerCapabilities::Hover;
|
||||||
|
+ return PointerCapabilities::Coarse;
|
||||||
|
#endif
|
||||||
|
- if (aDocument->ShouldResistFingerprinting(
|
||||||
|
- RFPTarget::CSSPointerCapabilities)) {
|
||||||
|
- return kDefaultCapabilities;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- int32_t intValue;
|
||||||
|
- nsresult rv = LookAndFeel::GetInt(aID, &intValue);
|
||||||
|
- if (NS_FAILED(rv)) {
|
||||||
|
- return kDefaultCapabilities;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- return static_cast<PointerCapabilities>(intValue);
|
||||||
|
+ return PointerCapabilities::Fine | PointerCapabilities::Hover;
|
||||||
|
}
|
||||||
|
|
||||||
|
PointerCapabilities Gecko_MediaFeatures_PrimaryPointerCapabilities(
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
version=130.0.1
|
version=130.0.1
|
||||||
release=beta.10
|
release=beta.11
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue