mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:08:11 +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. :^)
20 lines
464 B
CMake
20 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)
|