mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
Browser+WebContent+WebDriver: Move Execute Async Script to WebContent
With this, WebDriverEndpoints is unused and removed :^)
This commit is contained in:
parent
0b9803dc93
commit
31469ee45a
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/trflynn89
Commit: 31469ee45a
Pull-request: https://github.com/SerenityOS/serenity/pull/16019
Reviewed-by: https://github.com/linusg ✅
17 changed files with 35 additions and 161 deletions
|
@ -607,10 +607,6 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
|
|||
return active_tab().view().take_screenshot();
|
||||
};
|
||||
|
||||
new_tab.webdriver_endpoints().on_execute_script = [this](String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async) {
|
||||
return active_tab().view().webdriver_execute_script(body, json_arguments, timeout, async);
|
||||
};
|
||||
|
||||
new_tab.load(url);
|
||||
|
||||
dbgln_if(SPAM_DEBUG, "Added new tab {:p}, loading {}", &new_tab, url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue