LibWeb: Make a bunch of CSP classes not realm associated

These are not associated with a javascript realm, so to avoid
confusion about which realm these need to be created in, make
all of these objects a GC::Cell, and deal with the fallout.
This commit is contained in:
Shannon Booth
2025-04-26 11:35:51 +12:00
committed by Andreas Kling
parent 04fde1c550
commit 8a3c66d8a6
Notes: github-actions[bot] 2025-04-28 10:42:23 +00:00
20 changed files with 91 additions and 92 deletions

View File

@@ -28,8 +28,8 @@ enum class UserNavigationInvolvement {
};
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params
struct NavigationParams : JS::Cell {
GC_CELL(NavigationParams, JS::Cell);
struct NavigationParams : GC::Cell {
GC_CELL(NavigationParams, GC::Cell);
GC_DECLARE_ALLOCATOR(NavigationParams);
// null or a navigation ID