mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
Browser: Remove single-process mode :^)
Browser now only supports multi-process mode (Web::OutOfProcessWebView). This is where we want to go, so let's just jump in the cold water. :^)
This commit is contained in:
parent
dfa9dcca98
commit
6b2aadce11
5 changed files with 34 additions and 196 deletions
|
@ -29,7 +29,6 @@ namespace Browser {
|
|||
|
||||
String g_search_engine;
|
||||
String g_home_url;
|
||||
bool g_single_process = false;
|
||||
|
||||
}
|
||||
|
||||
|
@ -48,18 +47,11 @@ int main(int argc, char** argv)
|
|||
const char* specified_url = nullptr;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(Browser::g_single_process, "Single-process mode", "single-process", 's');
|
||||
args_parser.add_positional_argument(specified_url, "URL to open", "url", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (Browser::g_single_process) {
|
||||
// Connect to the RequestServer and the WebSocket service immediately so we don't need to unveil their portals.
|
||||
Web::ResourceLoader::the();
|
||||
Web::HTML::WebSocketClientManager::the();
|
||||
}
|
||||
|
||||
// Connect to LaunchServer immediately and let it know that we won't ask for anything other than opening
|
||||
// the user's downloads directory.
|
||||
// FIXME: This should go away with a standalone download manager at some point.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue