1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:04:59 +00:00

Browser: Refactor WebDriver flag activation into a single function

This commit is contained in:
Linus Groh 2022-11-05 00:59:10 +00:00 committed by Tim Flynn
parent b0eb45f7c7
commit 3ed1a14371
3 changed files with 8 additions and 2 deletions

View file

@ -152,7 +152,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
// The first tab is created with the BrowserWindow above, so we have to do this
// manually once after establishing the connection.
window->active_tab().view().set_is_webdriver_active(true);
window->active_tab().enable_webdriver_mode();
}
auto content_filters_watcher = TRY(Core::FileWatcher::create());