Andreas Kling
6e5c9970bf
LibWeb: Allow window.setTimeout() with no interval
...
If no interval is specified, it will be treated as 0 and the callback
function will be called on the next event loop iteration.
2020-04-06 08:26:26 +02:00
Andreas Kling
ca90f88d4e
LibWeb: Add window.setTimeout()
...
This also leaks the timer just like setInterval() (FIXME).
2020-04-05 00:56:16 +02:00
Linus Groh
cd3e2690eb
LibJS: Set length property in Object::put_native_function()
2020-04-04 15:58:49 +02:00
Andreas Kling
a2b0cc8f08
LibWeb: Add "navigator" object and expose navigator.userAgent
...
A lot of web content looks for this property. We'll probably have to
tweak this as we go, but at least now we have it. :^)
2020-04-03 18:12:20 +02:00
Andreas Kling
a27884e4be
LibWeb: Remove debug spam in WindowObject
2020-04-01 19:09:37 +02:00
Andreas Kling
d062d7baa7
LibWeb+LibJS: Move DOM Window object to dedicated classes
...
LibWeb now creates a WindowObject which inherits from GlobalObject.
Allocation of the global object is moved out of the Interpreter ctor
to allow for specialized construction.
The existing Window interfaces are moved to WindowObject with their
implementation code in the new Window class.
2020-04-01 18:57:00 +02:00