mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00

First, this moves the WebDriver socket to the /tmp/websocket/ directory, as WebDriver now creates multiple sockets per session. Those sockets are now created with Core::LocalServer rather than manually setting up the listening sockets (this was an existing FIXME which resolved some issues I was hitting with creating a second listening socket). WebDriver passes both socket paths to Browser via command line. Browser continues to connect itself via one socket path, then forwards the other socket path to the WebContent process created by the OOPWV. WebContent then connects to WebDriver over this path. WebContent will temporarily set the navigator.webdriver flag to true after connecting to WebDriver. This will soon be moved to its own IPC to be sent by WebDriver.
26 lines
648 B
C++
26 lines
648 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <Applications/Browser/IconBag.h>
|
|
#include <Applications/Browser/WebDriverConnection.h>
|
|
|
|
namespace Browser {
|
|
|
|
extern String g_home_url;
|
|
extern String g_new_tab_url;
|
|
extern String g_search_engine;
|
|
extern Vector<String> g_content_filters;
|
|
extern Vector<String> g_proxies;
|
|
extern HashMap<String, size_t> g_proxy_mappings;
|
|
extern bool g_content_filters_enabled;
|
|
extern IconBag g_icon_bag;
|
|
extern RefPtr<Browser::WebDriverConnection> g_web_driver_connection;
|
|
extern String g_webdriver_content_ipc_path;
|
|
|
|
}
|