mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
ConsoleGlobalObject is used as the global object when running javascript from the Browser console. This lets us implement console-only functions and variables (like `$0`) without exposing them to webpage content. It passes other calls over to the usual WindowObject so any code that would have worked in the webpage will still work in the console. :^)
21 lines
464 B
CMake
21 lines
464 B
CMake
serenity_component(
|
|
WebContent
|
|
TARGETS WebContent
|
|
)
|
|
|
|
compile_ipc(WebContentServer.ipc WebContentServerEndpoint.h)
|
|
compile_ipc(WebContentClient.ipc WebContentClientEndpoint.h)
|
|
|
|
set(SOURCES
|
|
ClientConnection.cpp
|
|
ConsoleGlobalObject.cpp
|
|
main.cpp
|
|
PageHost.cpp
|
|
WebContentConsoleClient.cpp
|
|
WebContentServerEndpoint.h
|
|
WebContentClientEndpoint.h
|
|
)
|
|
|
|
serenity_bin(WebContent)
|
|
target_link_libraries(WebContent LibCore LibIPC LibGfx LibWeb)
|