1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 15:05:09 +00:00
serenity/Meta/Lagom/Tools
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
..
CodeGenerators LibWeb: Give generated constructor functions a name 2023-03-17 16:37:21 +00:00
ConfigureComponents LibCore: Move Stream-based file into the Core namespace 2023-02-13 00:50:07 +00:00
IPCMagicLinter LibCore: Rename File to DeprecatedFile 2023-02-13 00:50:07 +00:00
LibJSGCVerifier Lagom: Remove debug line in LibJSGCVerifier 2023-03-15 08:48:49 +01:00
CMakeLists.txt Meta: Rename Lagom library target names from LagomFoo to LibFoo 2022-07-06 14:24:23 +02:00