mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Use enum instead of bool for CanUseCrossOriginIsolatedAPIs
Change the parameters types of the functions `coarsen_time` and `coarsened_shared_current_time` from `bool` to `CanUseCrossOriginIsolatedAPIs` for more coherence with the surrounding code.
This commit is contained in:
committed by
Sam Atkins
parent
bd76078f97
commit
bed56c676d
Notes:
github-actions[bot]
2026-02-13 16:49:12 +00:00
Author: https://github.com/NiccoloAntonelliDziri Commit: https://github.com/LadybirdBrowser/ladybird/commit/bed56c676d9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6432 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/Psychpsyo Reviewed-by: https://github.com/Zaggy1024 Reviewed-by: https://github.com/gmta
@@ -114,7 +114,7 @@ CanUseCrossOriginIsolatedAPIs WorkerEnvironmentSettingsObject::cross_origin_isol
|
||||
double WorkerEnvironmentSettingsObject::time_origin() const
|
||||
{
|
||||
// Return the result of coarsening unsafeWorkerCreationTime with worker global scope's cross-origin isolated capability.
|
||||
return HighResolutionTime::coarsen_time(m_unsafe_worker_creation_time, cross_origin_isolated_capability() == CanUseCrossOriginIsolatedAPIs::Yes);
|
||||
return HighResolutionTime::coarsen_time(m_unsafe_worker_creation_time, cross_origin_isolated_capability());
|
||||
}
|
||||
|
||||
void WorkerEnvironmentSettingsObject::visit_edges(JS::Cell::Visitor& visitor)
|
||||
|
||||
Reference in New Issue
Block a user