We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a735e06 commit 339b121Copy full SHA for 339b121
dom/geolocation/GeolocationSystemWin.cpp
@@ -8,6 +8,7 @@
8
#include "mozilla/Components.h"
9
#include "mozilla/dom/BrowsingContext.h"
10
#include "mozilla/ScopeExit.h"
11
+#include "mozilla/WindowsVersion.h"
12
#include "nsIGeolocationUIUtilsWin.h"
13
#include "nsIWifiListener.h"
14
#include "nsIWifiMonitor.h"
@@ -34,6 +35,7 @@ const wchar_t kLocationSettingsPage[] = L"ms-settings:privacy-location";
34
35
36
template <typename TypeToCreate>
37
ComPtr<TypeToCreate> CreateFromActivationFactory(const wchar_t* aNamespace) {
38
+ if (!IsWin11OrLater()) return {};
39
ComPtr<TypeToCreate> newObject;
40
GetActivationFactory(HStringReference(aNamespace).Get(), &newObject);
41
return newObject;
0 commit comments