1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 20:35:07 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibWeb
Luke Wilde 782cdaeccf LibWeb: Give generated constructor functions a name
Required by code that brand checks native constructors.

For example, Wistia brand checks XMLHttpRequest by doing:
```
XMLHttpRequest.prototype.constructor.toString()
```

It then checks if it matches either one of:
```
function XMLHttpRequest() { [native code] }
```
```
[object XMLHttpRequestConstructor]
```

If neither matches, it disables HLS playback and prints:
"The XMLHttpRequest constructor has been tampered with. Because this
affects CORS/Range XHR requests, HLS playback has been disabled.
To enable HLS playback and other important features, please remove code
that changes the definition of window.XMLHttpRequest."

We hit this path due to not giving generated constructors a name, as
we would provide `function () { [native code] }`.
2023-03-17 16:37:21 +00:00
..
BindingsGenerator LibWeb: Give generated constructor functions a name 2023-03-17 16:37:21 +00:00
CMakeLists.txt LibWeb: Add new code generator for creating exposed interface helpers 2022-10-09 10:14:57 +02:00
GenerateCSSEnums.cpp CodeGenerators: Ensure that we always print the entire generated output 2023-03-13 15:16:20 +00:00
GenerateCSSMediaFeatureID.cpp CodeGenerators: Ensure that we always print the entire generated output 2023-03-13 15:16:20 +00:00
GenerateCSSPropertyID.cpp CodeGenerators: Ensure that we always print the entire generated output 2023-03-13 15:16:20 +00:00
GenerateCSSTransformFunctions.cpp CodeGenerators: Ensure that we always print the entire generated output 2023-03-13 15:16:20 +00:00
GenerateCSSValueID.cpp AK: Rename CaseInsensitiveStringViewTraits to reflect intent 2023-03-14 21:34:32 +00:00
GenerateWindowOrWorkerInterfaces.cpp LibWeb: More fully implement the LegacyNamespace IDL extended attribute 2023-03-16 19:39:17 +00:00
GeneratorUtil.h AK: Rename Stream::read_entire_buffer to Stream::read_until_filled 2023-03-13 15:16:20 +00:00