mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
LibWeb: Hang on to the internal realm with a JS::Handle
This fixes an issue where GC would kill the internal realm if it ran at the wrong time during startup. Found by aggressively GC'ing between every allocation.
This commit is contained in:
parent
6e0f80fbe0
commit
2898701459
2 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,8 @@ struct WebEngineCustomData final : public JS::VM::CustomData {
|
|||
// FIXME: This should be a set.
|
||||
Vector<JS::Handle<DOM::MutationObserver>> mutation_observers;
|
||||
|
||||
JS::Handle<JS::Realm> internal_realm;
|
||||
|
||||
OwnPtr<JS::ExecutionContext> root_execution_context;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue