Bug 1451727 - [marionette] Remove unused execute_js_script method. draft
authorHenrik Skupin <mail@hskupin.info>
Fri, 06 Apr 2018 11:15:51 +0200
changeset 779359 dcff0fb6f6c2e5c8afa0b8abdf3ab7aecbb2ffa2
parent 779358 d4d0fd02a543ad9499d908e288278207c40ab628
child 779360 e3c36bcae3b8d64797e2b4ad71aa7cadf31b572c
push id105749
push userbmo:hskupin@gmail.com
push dateMon, 09 Apr 2018 19:09:52 +0000
bugs1451727
milestone61.0a1
Bug 1451727 - [marionette] Remove unused execute_js_script method. MozReview-Commit-ID: 3tkQmmRZfbd
testing/marionette/client/marionette_driver/marionette.py
--- a/testing/marionette/client/marionette_driver/marionette.py
+++ b/testing/marionette/client/marionette_driver/marionette.py
@@ -1717,32 +1717,16 @@ class Marionette(object):
                     unwrapped = HTMLElement(self, value[key])
                     break
                 else:
                     unwrapped[key] = self._from_json(value[key])
         else:
             unwrapped = value
         return unwrapped
 
-    def execute_js_script(self, script, script_args=(), async=True,
-                          new_sandbox=True, script_timeout=None,
-                          inactivity_timeout=None, filename=None,
-                          sandbox='default'):
-        args = self._to_json(script_args)
-        body = {"script": script,
-                "args": args,
-                "async": async,
-                "newSandbox": new_sandbox,
-                "scriptTimeout": script_timeout,
-                "inactivityTimeout": inactivity_timeout,
-                "filename": filename,
-                "line": None}
-        rv = self._send_message("executeJSScript", body, key="value")
-        return self._from_json(rv)
-
     def execute_script(self, script, script_args=(), new_sandbox=True,
                        sandbox="default", script_timeout=None):
         """Executes a synchronous JavaScript script, and returns the
         result (or None if the script does return a value).
 
         The script is executed in the context set by the most recent
         :func:`set_context` call, or to the CONTEXT_CONTENT context if
         :func:`set_context` has not been called.