From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- testing/marionette/client/marionette_driver/marionette.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testing/marionette/client/marionette_driver/marionette.py') diff --git a/testing/marionette/client/marionette_driver/marionette.py b/testing/marionette/client/marionette_driver/marionette.py index 3fbc1b63d7..a4b8c73792 100644 --- a/testing/marionette/client/marionette_driver/marionette.py +++ b/testing/marionette/client/marionette_driver/marionette.py @@ -2181,3 +2181,11 @@ class Marionette(object): :returns: Window rect. """ return self._send_message("WebDriver:FullscreenWindow") + + def set_permission(self, descriptor, state): + """Set the permission for the origin of the current page.""" + body = { + "descriptor": descriptor, + "state": state, + } + return self._send_message("WebDriver:SetPermission", body) -- cgit v1.2.3