LibWeb+LibWebView+WebContent: Remove the built-in Inspector

This commit is contained in:
Timothy Flynn 2025-03-14 16:22:16 -04:00 committed by Alexander Kalenik
parent 1c696e7893
commit 810d04b3f4
Notes: github-actions[bot] 2025-03-15 18:10:57 +00:00
34 changed files with 24 additions and 3082 deletions

View file

@ -60,7 +60,6 @@
#include <LibWeb/HTML/WindowProxy.h>
#include <LibWeb/HighResolutionTime/TimeOrigin.h>
#include <LibWeb/Infra/CharacterTypes.h>
#include <LibWeb/Internals/Inspector.h>
#include <LibWeb/Internals/Internals.h>
#include <LibWeb/Layout/Viewport.h>
#include <LibWeb/Page/Page.h>
@ -716,14 +715,8 @@ Vector<GC::Ref<MimeType>> Window::pdf_viewer_mime_type_objects()
return m_pdf_viewer_mime_type_objects;
}
static bool s_inspector_object_exposed = false;
static bool s_internals_object_exposed = false;
void Window::set_inspector_object_exposed(bool exposed)
{
s_inspector_object_exposed = exposed;
}
void Window::set_internals_object_exposed(bool exposed)
{
s_internals_object_exposed = exposed;
@ -739,8 +732,6 @@ WebIDL::ExceptionOr<void> Window::initialize_web_interfaces(Badge<WindowEnvironm
Bindings::WindowGlobalMixin::initialize(realm, *this);
WindowOrWorkerGlobalScopeMixin::initialize(realm);
if (s_inspector_object_exposed)
define_direct_property("inspector", realm.create<Internals::Inspector>(realm), JS::default_attributes);
if (s_internals_object_exposed)
define_direct_property("internals", realm.create<Internals::Internals>(realm), JS::default_attributes);