mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/HTML: Return an opaque origin for data URLs for Workers
This commit is contained in:
Notes:
github-actions[bot]
2025-05-24 13:52:38 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/8ccb89877a2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4868
@@ -62,7 +62,9 @@ URL::URL WorkerEnvironmentSettingsObject::api_base_url() 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user