mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 12:52:06 -08:00
remove playwright patches
This commit is contained in:
parent
c3a76418f9
commit
1141f10692
3 changed files with 0 additions and 3247 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -1,51 +0,0 @@
|
|||
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) {
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
# Playwright Patches
|
||||
|
||||
| File | Purpose |
|
||||
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `0-playwright.patch` | Playwright's upstream patches. Needs to be kept up to date with [this file](https://github.com/microsoft/playwright/blob/main/browser_patches/firefox/patches/bootstrap.diff). Will branch off if upstream is out of date. |
|
||||
| `0-leak-fixes.patch` | Undos certain patches from `0-playwright.patch`. |
|
||||
Loading…
Add table
Reference in a new issue