mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Ladybird: Add an option to enable internals object outside of test mode
Sometimes I like to play around with running Ladybird tests using full blown Ladybird instead of just headless browser to interactively mess around with the test page. One problem with this is that the internals object is not exposed in this mode. This commit supports this usecase by adding an option to specifically expose the internals object without needing to run headless-browser in test mode.
This commit is contained in:
parent
1ec6399c00
commit
5bf34ecc32
Notes:
sideshowbarker
2024-07-17 07:48:42 +09:00
Author: https://github.com/shannonbooth
Commit: 5bf34ecc32
Pull-request: https://github.com/SerenityOS/serenity/pull/24047
4 changed files with 18 additions and 1 deletions
|
@ -59,6 +59,8 @@ ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content_process(
|
|||
arguments.append("--log-all-js-exceptions"sv);
|
||||
if (web_content_options.enable_idl_tracing == Ladybird::EnableIDLTracing::Yes)
|
||||
arguments.append("--enable-idl-tracing"sv);
|
||||
if (web_content_options.expose_internals_object == Ladybird::ExposeInternalsObject::Yes)
|
||||
arguments.append("--expose-internals-object"sv);
|
||||
if (auto server = mach_server_name(); server.has_value()) {
|
||||
arguments.append("--mach-server-name"sv);
|
||||
arguments.append(server.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue