mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibWeb/HTML: Return an opaque origin for data URLs for Workers
This commit is contained in:
parent
9aabe88795
commit
8ccb89877a
Notes:
github-actions[bot]
2025-05-24 13:52:38 +00:00
Author: https://github.com/shannonbooth
Commit: 8ccb89877a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4868
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ URL::URL WorkerEnvironmentSettingsObject::api_base_url() const
|
||||||
|
|
||||||
URL::Origin WorkerEnvironmentSettingsObject::origin() const
|
URL::Origin WorkerEnvironmentSettingsObject::origin() const
|
||||||
{
|
{
|
||||||
// FIXME: Return a unique opaque origin if worker global scope's url's scheme is "data", and inherited origin otherwise.
|
// Return a unique opaque origin if worker global scope's url's scheme is "data", and inherited origin otherwise.
|
||||||
|
if (m_global_scope->url().scheme() == "data")
|
||||||
|
return URL::Origin {};
|
||||||
return m_origin;
|
return m_origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue