summaryrefslogtreecommitdiffstats
path: root/remote/marionette/driver.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'remote/marionette/driver.sys.mjs')
-rw-r--r--remote/marionette/driver.sys.mjs17
1 files changed, 0 insertions, 17 deletions
diff --git a/remote/marionette/driver.sys.mjs b/remote/marionette/driver.sys.mjs
index f4642e756e..6b5b1cf082 100644
--- a/remote/marionette/driver.sys.mjs
+++ b/remote/marionette/driver.sys.mjs
@@ -3346,23 +3346,6 @@ GeckoDriver.prototype.setPermission = async function (cmd) {
const { descriptor, state, oneRealm = false } = cmd.parameters;
const browsingContext = lazy.assert.open(this.getBrowsingContext());
- // XXX: WPT should not have these but currently they do and we pass testing pref to
- // pass them, see bug 1875837.
- if (
- ["clipboard-read", "clipboard-write"].includes(descriptor.name) &&
- state === "granted"
- ) {
- if (
- Services.prefs.getBoolPref("dom.events.testing.asyncClipboard", false)
- ) {
- // Okay, do nothing. The clipboard module will work without permission.
- return;
- }
- throw new lazy.error.UnsupportedOperationError(
- "setPermission: expected dom.events.testing.asyncClipboard to be set"
- );
- }
-
// XXX: We currently depend on camera/microphone tests throwing UnsupportedOperationError,
// the fix is ongoing in bug 1609427.
if (["camera", "microphone"].includes(descriptor.name)) {