mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-05 16:41:52 +00:00
LibWeb+LibWebView+WebContent: Remove the built-in Inspector
This commit is contained in:
parent
1c696e7893
commit
810d04b3f4
Notes:
github-actions[bot]
2025-03-15 18:10:57 +00:00
Author: https://github.com/trflynn89
Commit: 810d04b3f4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3956
34 changed files with 24 additions and 3082 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue