ladybird/Userland/Libraries/LibWeb/HTML/Scripting
Andreas Kling fbf9cb3387 WebContent+LibWeb+LibJS: Simplify injection of JS console globals
Instead of creating a new global object and proxying everything through
it, we now evaluate console inputs inside a `with` environment.

This seems to match the behavior of WebKit and Gecko in my basic
testing, and removes the ConsoleGlobalObject which has been a source of
confusion and invalid downcasts.

The globals now live in a class called ConsoleGlobalObjectExtensions
(renamed from ConsoleGlobalObject since it's no longer a global object).

To make this possible, I had to add a way to override the initial
lexical environment when calling JS::Interpreter::run(). This is plumbed
via Web::HTML::ClassicScript::run().
2022-12-09 18:51:03 +00:00
..
ClassicScript.cpp WebContent+LibWeb+LibJS: Simplify injection of JS console globals 2022-12-09 18:51:03 +00:00
ClassicScript.h WebContent+LibWeb+LibJS: Simplify injection of JS console globals 2022-12-09 18:51:03 +00:00
Environments.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Environments.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ExceptionReporter.cpp LibJS: Reduce AST memory usage by shrink-wrapping source range info 2022-11-22 21:13:35 +01:00
ExceptionReporter.h WebContent+LibWeb+LibJS: Report exceptions to the JS console 2022-10-15 01:25:12 +02:00
Fetching.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Fetching.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ImportMap.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ModuleMap.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ModuleMap.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
ModuleScript.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
ModuleScript.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Script.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Script.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
WindowEnvironmentSettingsObject.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
WindowEnvironmentSettingsObject.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
WorkerEnvironmentSettingsObject.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00