mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
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:
committed by
Andreas Kling
parent
04fde1c550
commit
8a3c66d8a6
Notes:
github-actions[bot]
2025-04-28 10:42:23 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/8a3c66d8a69 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4484
@@ -10,10 +10,10 @@
|
||||
|
||||
namespace Web::ContentSecurityPolicy::Directives {
|
||||
|
||||
GC::Ref<Directive> create_directive(JS::Realm& realm, String name, Vector<String> value)
|
||||
GC::Ref<Directive> create_directive(GC::Heap& heap, String name, Vector<String> value)
|
||||
{
|
||||
dbgln("Potential FIXME: Creating unknown Content Security Policy directive: {}", name);
|
||||
return realm.create<Directive>(move(name), move(value));
|
||||
return heap.allocate<Directive>(move(name), move(value));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user