mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibWeb: Change backup imcumbent stack to hold Realm instead of Settings
This is a bit of a chonkier commit as it results in both: clean_up_after_running_callback and prepare_to_run_callback being changed to accept a realm instead of an environment settings object, which has a bunch of fallout, particuarly for IDL abstract operations.
This commit is contained in:
committed by
Andrew Kaster
parent
8dffd8e7d6
commit
d7023f5f45
@@ -958,7 +958,7 @@ void fetch_descendants_of_and_link_a_module_script(JS::Realm& realm,
|
||||
// resulting in the event loop hanging forever awaiting for the script to be ready for parser
|
||||
// execution.
|
||||
realm.vm().push_execution_context(fetch_client.realm_execution_context());
|
||||
fetch_client.prepare_to_run_callback();
|
||||
prepare_to_run_callback(realm);
|
||||
|
||||
// 5. Let loadingPromise be record.LoadRequestedModules(state).
|
||||
auto& loading_promise = record->load_requested_modules(state);
|
||||
@@ -995,7 +995,8 @@ void fetch_descendants_of_and_link_a_module_script(JS::Realm& realm,
|
||||
return JS::js_undefined();
|
||||
}));
|
||||
|
||||
fetch_client.clean_up_after_running_callback();
|
||||
clean_up_after_running_callback(realm);
|
||||
|
||||
realm.vm().pop_execution_context();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user