Skip to content

Commit

Permalink
remove add_preload_script
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Apr 15, 2024
1 parent 129dd71 commit ef1ea13
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
7 changes: 0 additions & 7 deletions tools/wptrunner/wptrunner/executors/executorwebdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,6 @@ async def async_call_function(self, script, context, args=None):
"context": context if context else self.current_window},
await_promise=True)

async def add_preload_script(self, script, contexts=None, arguments=None, sandbox=None):
return await self.webdriver.bidi_session.script.add_preload_script(
function_declaration=script,
contexts=contexts,
arguments=arguments,
sandbox=sandbox)


class WebDriverTestharnessProtocolPart(TestharnessProtocolPart):
def setup(self):
Expand Down
12 changes: 0 additions & 12 deletions tools/wptrunner/wptrunner/executors/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,18 +371,6 @@ async def async_call_function(self, script, context, args=None):
"""
pass

@abstractmethod
async def add_preload_script(self, script, contexts=None, arguments=None, sandbox=None):
"""
Adds preload script to the given context or globally.
:param str script: The js source to execute.
:param list contexts: The context in which to execute the script.
:param list arguments: List of channels to pass to the script.
:param str sandbox: The sandbox in which to execute the script.
"""
pass


class CookiesProtocolPart(ProtocolPart):
"""Protocol part for managing cookies"""
Expand Down

0 comments on commit ef1ea13

Please sign in to comment.