Ladybird: Remove macOS workaround for WebContent GUI interaction
This reverts commit 4dcdc3bd25
.
Now that WebContent is a QCoreApplication, this workaround is no longer
needed.
This commit is contained in:
parent
aa7ca80d7c
commit
1d59a62944
Notes:
sideshowbarker
2024-07-16 22:54:10 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/1d59a62944 Pull-request: https://github.com/SerenityOS/serenity/pull/20282
4 changed files with 0 additions and 37 deletions
|
@ -19,10 +19,6 @@ set(WEBCONTENT_SOURCES
|
|||
main.cpp
|
||||
)
|
||||
|
||||
if (APPLE)
|
||||
list(APPEND WEBCONTENT_SOURCES MacOSSetup.mm)
|
||||
endif()
|
||||
|
||||
qt_add_executable(WebContent ${WEBCONTENT_SOURCES})
|
||||
|
||||
target_include_directories(WebContent PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/)
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
void prohibit_interaction();
|
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "MacOSSetup.h"
|
||||
#import <AppKit/NSApplication.h>
|
||||
|
||||
void prohibit_interaction()
|
||||
{
|
||||
// This prevents WebContent from being displayed in the macOS Dock and becoming the focused,
|
||||
// interactable application upon launch.
|
||||
[NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited];
|
||||
}
|
|
@ -12,7 +12,6 @@
|
|||
#include "../Utilities.h"
|
||||
#include "../WebSocketClientManagerLadybird.h"
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/Platform.h>
|
||||
#include <LibAudio/Loader.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
|
@ -35,10 +34,6 @@
|
|||
#include <WebContent/PageHost.h>
|
||||
#include <WebContent/WebDriverConnection.h>
|
||||
|
||||
#if defined(AK_OS_MACOS)
|
||||
# include "MacOSSetup.h"
|
||||
#endif
|
||||
|
||||
static ErrorOr<void> load_content_filters();
|
||||
static ErrorOr<void> load_autoplay_allowlist();
|
||||
|
||||
|
@ -48,10 +43,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
{
|
||||
QCoreApplication app(arguments.argc, arguments.argv);
|
||||
|
||||
#if defined(AK_OS_MACOS)
|
||||
prohibit_interaction();
|
||||
#endif
|
||||
|
||||
Core::EventLoopManager::install(*new Ladybird::EventLoopManagerQt);
|
||||
Core::EventLoop event_loop;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue