mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 16:02:04 -08:00
51 lines
1.7 KiB
Diff
51 lines
1.7 KiB
Diff
diff --git a/dom/base/Navigator.cpp b/dom/base/Navigator.cpp
|
|
index e0cbb3f1f8..d7868e7ae0 100644
|
|
--- a/dom/base/Navigator.cpp
|
|
+++ b/dom/base/Navigator.cpp
|
|
@@ -2288,28 +2288,7 @@ dom::PrivateAttribution* Navigator::PrivateAttribution() {
|
|
|
|
/* static */
|
|
bool Navigator::Webdriver() {
|
|
-#ifdef ENABLE_WEBDRIVER
|
|
- nsCOMPtr<nsIMarionette> marionette = do_GetService(NS_MARIONETTE_CONTRACTID);
|
|
- if (marionette) {
|
|
- bool marionetteRunning = false;
|
|
- marionette->GetRunning(&marionetteRunning);
|
|
- if (marionetteRunning) {
|
|
- return true;
|
|
- }
|
|
- }
|
|
-
|
|
- nsCOMPtr<nsIRemoteAgent> agent = do_GetService(NS_REMOTEAGENT_CONTRACTID);
|
|
- if (agent) {
|
|
- bool remoteAgentRunning = false;
|
|
- agent->GetRunning(&remoteAgentRunning);
|
|
- if (remoteAgentRunning) {
|
|
- return true;
|
|
- }
|
|
- }
|
|
-#endif
|
|
-
|
|
- // Playwright is automating the browser, so we should pretend to be a webdriver
|
|
- return true;
|
|
+ return false;
|
|
}
|
|
|
|
AutoplayPolicy Navigator::GetAutoplayPolicy(AutoplayPolicyMediaType aType) {
|
|
diff --git a/toolkit/components/enterprisepolicies/EnterprisePoliciesParent.sys.mjs b/toolkit/components/enterprisepolicies/EnterprisePoliciesParent.sys.mjs
|
|
index 0eeb5924c4..8b975a8b11 100644
|
|
--- a/toolkit/components/enterprisepolicies/EnterprisePoliciesParent.sys.mjs
|
|
+++ b/toolkit/components/enterprisepolicies/EnterprisePoliciesParent.sys.mjs
|
|
@@ -108,12 +108,6 @@ EnterprisePoliciesManager.prototype = {
|
|
Services.prefs.clearUserPref(PREF_POLICIES_APPLIED);
|
|
}
|
|
|
|
- // Playwright: Disable enterprise policies
|
|
- if (true) {
|
|
- this.status = Ci.nsIEnterprisePolicies.INACTIVE;
|
|
- return;
|
|
- }
|
|
-
|
|
let provider = this._chooseProvider();
|
|
|
|
if (provider.failed) {
|