mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
LibWeb: Parse <script> elements and run any JavaScript found inside
This patch begins integrating LibJS into LibWeb. Document holds the JS::Interpreter for now, and it is created on demand when you first call Document::interpreter(). We also add a simple "alert()" function to the global object.
This commit is contained in:
parent
f94099f796
commit
9c9d3f0904
11 changed files with 142 additions and 3 deletions
|
@ -4,7 +4,7 @@ OBJS = \
|
|||
|
||||
PROGRAM = Browser
|
||||
|
||||
LIB_DEPS = GUI Web Gfx IPC Protocol Core
|
||||
LIB_DEPS = Web JS GUI Gfx IPC Protocol Core
|
||||
|
||||
main.cpp: ../../Libraries/LibWeb/CSS/PropertyID.h
|
||||
../../Libraries/LibWeb/CSS/PropertyID.h:
|
||||
|
|
|
@ -7,6 +7,6 @@ OBJS = \
|
|||
|
||||
PROGRAM = Help
|
||||
|
||||
LIB_DEPS = GUI Web Gfx Markdown IPC Protocol Thread Pthread Core
|
||||
LIB_DEPS = GUI Web JS Gfx Markdown IPC Protocol Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
||||
|
|
|
@ -11,6 +11,6 @@ OBJS = \
|
|||
|
||||
PROGRAM = IRCClient
|
||||
|
||||
LIB_DEPS = GUI Web Gfx Protocol IPC Thread Pthread Core
|
||||
LIB_DEPS = Web JS GUI Gfx Protocol IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue