mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Add Web Worker Origin Inheritance
Fetch requests from web workers fail CORS checks because the origin is not inherited from the outside settings. Ensure web worker origin is correctly inherited from outside settings
This commit is contained in:
parent
176e3ba16a
commit
24adb1c452
Notes:
sideshowbarker
2024-07-16 20:39:14 +09:00
Author: https://github.com/braydnm 🔰
Commit: 24adb1c452
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/408
Issue: https://github.com/LadybirdBrowser/ladybird/issues/189
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 18 additions and 5 deletions
|
@ -24,7 +24,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
static JS::NonnullGCPtr<WorkerEnvironmentSettingsObject> setup(JS::NonnullGCPtr<Page> page, NonnullOwnPtr<JS::ExecutionContext> execution_context /* FIXME: null or an environment reservedEnvironment, a URL topLevelCreationURL, and an origin topLevelOrigin */);
|
||||
static JS::NonnullGCPtr<WorkerEnvironmentSettingsObject> setup(JS::NonnullGCPtr<Page> page, NonnullOwnPtr<JS::ExecutionContext> execution_context, SerializedEnvironmentSettingsObject const& outside_settings, HighResolutionTime::DOMHighResTimeStamp unsafe_worker_creation_time);
|
||||
|
||||
virtual ~WorkerEnvironmentSettingsObject() override = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue