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 marionette = do_GetService(NS_MARIONETTE_CONTRACTID); - if (marionette) { - bool marionetteRunning = false; - marionette->GetRunning(&marionetteRunning); - if (marionetteRunning) { - return true; - } - } - - nsCOMPtr 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) {